Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Programming / March 2008

Tip: Looking for answers? Try searching our database.

SaveAs - modify code?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Steve - 26 Mar 2008 16:10 GMT
Hi everyone.  What I'm trying to accomplish is to have the user click
a button and have the SaveAs box come up with a default folder
location.  The code below does that fine.  But, the file is always
saved as the default name (Book1), even if I change it to something
else.  Can you please modify the code so I can choose he the file name
to be saved as?  Thanks!!

sStr = "L:\Sales\East\Terms\2008\"
ChDrive sStr
ChDir sStr
Application.GetSaveAsFilename
ActiveWorkbook.SaveAs
Joel - 26 Mar 2008 17:34 GMT
sStr = "L:\Sales\East\Terms\2008\"
ChDrive sStr
ChDir sStr
FName = Application.GetSaveAsFilename
if FName = False then
  ActiveWorkbook.SaveAs
else
  ActiveWorkbook.SaveAs filename:=FName
end if

> Hi everyone.  What I'm trying to accomplish is to have the user click
> a button and have the SaveAs box come up with a default folder
[quoted text clipped - 8 lines]
> Application.GetSaveAsFilename
> ActiveWorkbook.SaveAs
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.