Greetings, all.
I have a small problem that I cannot find a solution for - it is Friday afternoon and my google-fu is weak.
I am adding a macro to a spreadsheet by way of VB script, using the code
where strCode contains the macro. What I'd like to do is add a description that is visible to the user of the spreadsheet when they select the macro to run.
Do I need to add the description to the macro code in strCode or is there a VBComponents command I need to use?
Many thanks & happy Friday,
lex
soi la, soi carré
I have a small problem that I cannot find a solution for - it is Friday afternoon and my google-fu is weak.
I am adding a macro to a spreadsheet by way of VB script, using the code
Code:
Set xlmodule = objExcel.Workbooks(1).VBProject.VBComponents.Add(1)
xlmodule.CodeModule.AddFromString strCode
Set xlmodule = Nothing
Do I need to add the description to the macro code in strCode or is there a VBComponents command I need to use?
Many thanks & happy Friday,
lex
soi la, soi carré