Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Chris Watson
 
Posts: n/a
Default Macro Save As Code???


I need to save a work book into a location with a name from a cell using
a macro ie: C:\Temp\Invoice\F15.
F15 containing the file name.
Is this possible.


--
Chris Watson
------------------------------------------------------------------------
Chris Watson's Profile: http://www.excelforum.com/member.php...fo&userid=4700
View this thread: http://www.excelforum.com/showthread...hreadid=505987

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Bob Phillips
 
Posts: n/a
Default Macro Save As Code???


activeworkbook.saveas filename:=range("F15").value

--

HTH

Bob Phillips

(remove nothere from the email address if mailing direct)

"Chris Watson"
wrote in message
news:Chris.Watson.22camm_1138443001.5138@excelforu m-nospam.com...

I need to save a work book into a location with a name from a cell using
a macro ie: C:\Temp\Invoice\F15.
F15 containing the file name.
Is this possible.


--
Chris Watson
------------------------------------------------------------------------
Chris Watson's Profile:

http://www.excelforum.com/member.php...fo&userid=4700
View this thread: http://www.excelforum.com/showthread...hreadid=505987



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Gary''s Student
 
Posts: n/a
Default Macro Save As Code???

Sub Macro2()
Dim s, ss As String
s = Cells(1, 1).Value
ss = "C:\" & s
ActiveWorkbook.SaveAs Filename:=ss, FileFormat:=xlNormal, Password _
:="", WriteResPassword:="", ReadOnlyRecommended:=False,
CreateBackup:= _
False
End Sub

--
Gary''s Student


"Chris Watson" wrote:


I need to save a work book into a location with a name from a cell using
a macro ie: C:\Temp\Invoice\F15.
F15 containing the file name.
Is this possible.


--
Chris Watson
------------------------------------------------------------------------
Chris Watson's Profile: http://www.excelforum.com/member.php...fo&userid=4700
View this thread: http://www.excelforum.com/showthread...hreadid=505987


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
Macro Help In Excel welshlad Excel Discussion (Misc queries) 14 October 26th 05 02:34 PM
Macro to auto save file using the format YYMM Dolphinv4 Excel Discussion (Misc queries) 1 September 29th 05 04:09 AM
Creating a macro to save only partial data Jparsons Excel Discussion (Misc queries) 0 September 24th 05 10:50 AM
How do I save macro so it's there for all Excel sheets? Save a macro in Excel Excel Discussion (Misc queries) 2 September 22nd 05 08:11 PM
[Q] Save As throws type mismatch error in control's code? Jason Weiss Excel Discussion (Misc queries) 1 July 16th 05 04:21 AM


All times are GMT +1. The time now is 12:13 PM.

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

About Us

"It's about Microsoft Excel"