Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 735
Default Saving an Excel Wookbook to a Variable?

Try using this code, it opens the save dialog with the text from cell A1 as
the default name.

Sub mysave()
Dim fname
fname = Application.GetSaveAsFilename(InitialFileName:=Ran ge("A1"), _
filefilter:="Excel Files (*.xls), *.xls", _
Title:="Save Workbook")
End Sub

--

Regards,
Nigel




"RMS" wrote in message
...
I have an Excel worksheet that I use often. I save it to a file using the
clients last and first name as the file name. Since the client's name is
in a known Cell in the worksheet, it would be nice to assign the cell a
variable name and save the workbook to that name. This would save time and
help avoid typo's.

Oddly , the highly authoritative "VBA for Dummies" is strangely silent on
this issue.

Thanks, RMS


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
How do pull data from more than one excel wookbook to one? Derrell Excel Worksheet Functions 1 August 14th 09 06:04 PM
Excel VBA Wookbook Routines Michael Kintner Excel Discussion (Misc queries) 1 August 7th 07 02:16 PM
Excel VBA Wookbook Routines Michael Kintner Excel Programming 1 August 7th 07 02:16 PM
Launch a wookbook when excel opens. [email protected] Excel Programming 0 June 18th 06 07:48 AM
Excel Wookbook naming Digdug Excel Programming 3 February 2nd 05 03:34 PM


All times are GMT +1. The time now is 10:16 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"