I want to add a new workbook and then create a command button on the worksheet and assign a macro to that button. How can I do this?
Code would be something like this.
Sub AddNewBook()
workbooks.add xlWBATWorksheet
'Create button
'Assign macro
end sub
Thanks for the help!
Dave S.
Code would be something like this.
Sub AddNewBook()
workbooks.add xlWBATWorksheet
'Create button
'Assign macro
end sub
Thanks for the help!
Dave S.