VBA - Create a series of buttons on a Excel worksheet

April 2018

This example shows how to create two buttons to fill up two particular colum in an Excel spreadsheet.
  • Create a collection object (Class) grouping the "click" command ofeach button in a single sub.
  • It is part of collections of objects on a sheet and not a UserControl.

Tested on Excel 2000 and 2007


You can modify the button properties, eg color....

Making use of collection class for events with an additional collecion objects for the properties.
Download project:

Published by jak58. Latest update on October 31, 2012 at 06:12 PM by Jeff.
This document, titled "VBA - Create a series of buttons on a Excel worksheet," is available under the Creative Commons license. Any copy, reuse, or modification of the content should be sufficiently credited to CCM (https://ccm.net/).
Excel - Set default width for validation lists
Excel (VBA) - Open Outlook and send a file