|
-
Oct 20th, 2004, 04:36 AM
#1
Thread Starter
Junior Member
Creating a new workbook with a macro in it
Can I write a macro that creates a new workbook (using "Workbooks.Add") and then adds a macro to that new workbook?
My target is creating a workbook with a CommandButton in it. The commandButton is to execute a macro that belongs to the CommandButton's workbook, and not a macro that is on another workbook.
I know I can assign the CommandButton with
"'<workbook name>'!<macro name>"
but I want the macro assigned to the CommandButton to be created in the new workbook.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|