J
jingsheng.zhou
There is a button named CommandButton1 in sheet1 of an excel workbook .
How to programmatically to add CommandButton1_click event heandler with
VB?
I know how to add a macro programmatically using set xlmodule =
xlbook.VBProject.VBComponents.Add and xlmodule.codeModule.AddFromString
strCode, But these doesn't add code into CommandButton1_click Sub.
Thanks,
Gene
How to programmatically to add CommandButton1_click event heandler with
VB?
I know how to add a macro programmatically using set xlmodule =
xlbook.VBProject.VBComponents.Add and xlmodule.codeModule.AddFromString
strCode, But these doesn't add code into CommandButton1_click Sub.
Thanks,
Gene