Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I have created extensive code to derive reports off a current workbook.
What I want to do now is create a macro in my original workbook that will open a new workbook, run my report code, and then prompt for a save_as name. The most important part is really just getting a macro to open a new workbook. I realize the code for my report generating will need to be modified to refer to the correct pages. |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
To get a new workbook you can use code similar to
dim wbk as workbook set wbk = workbooks.add To save this new workbook you can use wbk.saveas "C:\MyBook.xls" HTH "Mark" wrote: I have created extensive code to derive reports off a current workbook. What I want to do now is create a macro in my original workbook that will open a new workbook, run my report code, and then prompt for a save_as name. The most important part is really just getting a macro to open a new workbook. I realize the code for my report generating will need to be modified to refer to the correct pages. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Prompt to Open or Save the downloaded file | Excel Discussion (Misc queries) | |||
How to make Save prompt come up on Excel workbook | Excel Discussion (Misc queries) | |||
save prompt for user exit, but no save prompt for batch import? | Excel Discussion (Misc queries) | |||
No save prompt when closing workbook | Excel Discussion (Misc queries) | |||
Can a MACRO prompt for the filename to open and/or save? | Excel Programming |