0
Thanks

A few words of thanks would be greatly appreciated.

VBA - Create a series of buttons on a Excel worksheet






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



Workbook1.xls

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:

0
Thanks

A few words of thanks would be greatly appreciated.

Ask a question
CCM is a leading international tech website. Our content is written in collaboration with IT experts, under the direction of Jeff Pillou, founder of CCM.net. CCM reaches more than 50 million unique visitors per month and is available in 11 languages.

Original article published by . Translated by jak58. Latest update on by Jean-François Pillou.

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/).

0 Comments