Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7
Default Save As window with vba

Is it possible to use existing Save As function with Vba? What kind of
commands I have to use to open File--Save As window using vba?

My target is to force user to save the document with different name than
original every time when the user opens the original version of the dokument.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,420
Default Save As window with vba

ActiveWorkbook.SaveAs Filename:="c:\dir\some other name.xls"

--
__________________________________
HTH

Bob

"VBA beginner" wrote in message
...
Is it possible to use existing Save As function with Vba? What kind of
commands I have to use to open File--Save As window using vba?

My target is to force user to save the document with different name than
original every time when the user opens the original version of the
dokument.



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7
Default Save As window with vba

Okey, it works, but this way isn't possible to let user to choose directory
where the file will be saved. Whole path is possible to save to the variable
and use it, but it isn't wice, for example if the user doesn't know the
directory tree exactly.

"Bob Phillips" kirjoitti:

ActiveWorkbook.SaveAs Filename:="c:\dir\some other name.xls"

--
__________________________________
HTH

Bob

"VBA beginner" wrote in message
...
Is it possible to use existing Save As function with Vba? What kind of
commands I have to use to open File--Save As window using vba?

My target is to force user to save the document with different name than
original every time when the user opens the original version of the
dokument.




  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,420
Default Save As window with vba

You can

ChDrive c:\dir"
ChDir c:\dir"
ActiveWorkbook.SaveAs Filename:="some other name.xls"


--
__________________________________
HTH

Bob

"VBA beginner" wrote in message
...
Okey, it works, but this way isn't possible to let user to choose
directory
where the file will be saved. Whole path is possible to save to the
variable
and use it, but it isn't wice, for example if the user doesn't know the
directory tree exactly.

"Bob Phillips" kirjoitti:

ActiveWorkbook.SaveAs Filename:="c:\dir\some other name.xls"

--
__________________________________
HTH

Bob

"VBA beginner" wrote in message
...
Is it possible to use existing Save As function with Vba? What kind of
commands I have to use to open File--Save As window using vba?

My target is to force user to save the document with different name
than
original every time when the user opens the original version of the
dokument.






  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,489
Default Save As window with vba

Hi,

Have a look at using

application.GetSaveAsFilename

which, displays the standard Save As dialog box and gets a file name from
the user without actually saving any files.

Cheers
Andy

--

Andy Pope, Microsoft MVP - Excel
http://www.andypope.info
"VBA beginner" wrote in message
...
Okey, it works, but this way isn't possible to let user to choose
directory
where the file will be saved. Whole path is possible to save to the
variable
and use it, but it isn't wice, for example if the user doesn't know the
directory tree exactly.

"Bob Phillips" kirjoitti:

ActiveWorkbook.SaveAs Filename:="c:\dir\some other name.xls"

--
__________________________________
HTH

Bob

"VBA beginner" wrote in message
...
Is it possible to use existing Save As function with Vba? What kind of
commands I have to use to open File--Save As window using vba?

My target is to force user to save the document with different name
than
original every time when the user opens the original version of the
dokument.







  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 13
Default Save As window with vba

Use Bob's solution and create a userform in VBA with a textbox for the user
to enter the new filename and add an incrementing counter to it plus a "_"
and the date.Add a button to Userform1.Hide and you've got it.
scooper

"VBA beginner" wrote in message
...
Is it possible to use existing Save As function with Vba? What kind of
commands I have to use to open File--Save As window using vba?

My target is to force user to save the document with different name than
original every time when the user opens the original version of the

dokument.


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' window in VBA cluckers Excel Discussion (Misc queries) 1 October 29th 09 04:10 PM
how to save a desired window size but hv window comeup fullsz by d smjm1982 Excel Discussion (Misc queries) 1 February 15th 08 11:10 AM
Save As Window Size Bruckdorfer Excel Discussion (Misc queries) 1 February 13th 06 06:30 PM
Using a save window with VB that works Trainer Dan Excel Programming 1 June 10th 05 10:35 PM
Add favorites to "Save" window Anne Setting up and Configuration of Excel 1 December 7th 04 07:19 PM


All times are GMT +1. The time now is 06:42 AM.

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"