Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I am trying to make a macro which opens the Save As-box. Can anyone
help me? I know this has been asked before, but on most occations people want the filename to be based on the input in the worksheet. I just want the Save As-box to appear, and the user to enter the filename (and choose the path). |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Look at GetSaveAsFilename in VBA help.
-- HTH Bob Phillips (remove nothere from email address if mailing direct) wrote in message oups.com... I am trying to make a macro which opens the Save As-box. Can anyone help me? I know this has been asked before, but on most occations people want the filename to be based on the input in the worksheet. I just want the Save As-box to appear, and the user to enter the filename (and choose the path). |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
And where do I find VBA help (would probably help me with many
questions:-) ? When I press the questionmark in my Visual basic window, and search for GetSaveAsFilename in Index, I get no match (only GetObject function and GetSetting function). |
#6
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Type GetSaveAsFilename in the immediate window, select it, then press F1.
-- HTH Bob Phillips (remove nothere from email address if mailing direct) "JK" wrote in message oups.com... wrote: And where do I find VBA help (would probably help me with many questions:-) ? When I press the questionmark in my Visual basic window, and search for GetSaveAsFilename in Index, I get no match (only GetObject function and GetSetting function). put this line to your code: Application.GetSaveAsFilename It will open the Save As -prompt |
#7
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Thanks. And how do I get the SaveAs-box to filter only excel-files (and
give the file .xls-ending)? |
#8
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Ok, put this to the code:
Application.GetSaveAsFilename , "Excel-files,*.xls", 1, "Give the name" The overview can be found from the Help files (select the GetSaveAsFilename in code window and press F1) |
#9
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Very good thank you. Did not know about the F1-function, but it will
help me a lot on other issues as well :-) |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Save As Macro | Excel Worksheet Functions | |||
Macro to Insert Current Date into cell - Macro to "Save As" | Excel Worksheet Functions | |||
Macro to Save without the Save Message | Excel Discussion (Misc queries) | |||
ASP: Open Excel File with Macro, Allow Macro to run, and then save | Excel Programming | |||
Prompted to save changes after macro save - why? | Excel Programming |