ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Adding Code to Command Button at Run Time (https://www.excelbanter.com/excel-programming/373280-adding-code-command-button-run-time.html)

Kevin E.

Adding Code to Command Button at Run Time
 


moon[_7_]

Adding Code to Command Button at Run Time
 

http://www.cpearson.com/excel/vbe.htm is quite a cool site that tells you
all about it.

But make sure in VB Editor, you go to Tools/References and check:
- Microsoft Visual Basic for Applications Extensibility 5.3
Else some required variables won't be recognized.

If it's too hard to program the button's code in a form, I guess you put the
actual code in a module that you can modify, and let the buttonclick launch
that changing code.



"Kevin E." schreef in bericht
...





All times are GMT +1. The time now is 04:37 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com