I have a workbook and in sheet1, cell A5, the user specifies a desired file name, e.g "Quote - March 12." They can then push a command button and then the associated macro makes a copy of sheet1 and then saves this newly created workbook using the file name the user defined.
Now the tricky part. Later on, I want the user to be able to open the new workbook, edit it, update the file name, e.g. to "Quote - June 4" and then push a button that will save the workbook using the updated name.
My problem is that I'm not sure how to "pass" a macro from the original workbook that will then be available in the new workbook so that the user can save the new workbook by just pressing the button.
Is it possible to transmit a macro to a new workbook this way? When I first tried, there were none of the macros from the original workbook in the new one.
I would welcome any tactical or strategic help.
Thanks,
Mikeg
Now the tricky part. Later on, I want the user to be able to open the new workbook, edit it, update the file name, e.g. to "Quote - June 4" and then push a button that will save the workbook using the updated name.
My problem is that I'm not sure how to "pass" a macro from the original workbook that will then be available in the new workbook so that the user can save the new workbook by just pressing the button.
Is it possible to transmit a macro to a new workbook this way? When I first tried, there were none of the macros from the original workbook in the new one.
I would welcome any tactical or strategic help.
Thanks,
Mikeg