Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 15
Default Save as macro

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Save as macro

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).



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 15
Default Save as macro

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Save as macro

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 15
Default Save as macro

Thanks. And how do I get the SaveAs-box to filter only excel-files (and
give the file .xls-ending)?

  #8   Report Post  
Posted to microsoft.public.excel.programming
JK JK is offline
external usenet poster
 
Posts: 7
Default Save as macro

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 15
Default Save as macro

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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Save As Macro Max2073 Excel Worksheet Functions 2 April 9th 10 01:17 PM
Macro to Insert Current Date into cell - Macro to "Save As" Guy[_2_] Excel Worksheet Functions 4 December 12th 08 08:20 PM
Macro to Save without the Save Message Ellen G Excel Discussion (Misc queries) 4 February 23rd 07 08:52 PM
ASP: Open Excel File with Macro, Allow Macro to run, and then save delgados129 Excel Programming 0 March 10th 05 09:35 PM
Prompted to save changes after macro save - why? Izar Arcturus Excel Programming 2 December 10th 03 09:27 PM


All times are GMT +1. The time now is 03:43 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"