Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
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
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
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
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
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 |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Macro Help In Excel | Excel Discussion (Misc queries) | |||
Macro to auto save file using the format YYMM | Excel Discussion (Misc queries) | |||
Creating a macro to save only partial data | Excel Discussion (Misc queries) | |||
How do I save macro so it's there for all Excel sheets? | Excel Discussion (Misc queries) | |||
[Q] Save As throws type mismatch error in control's code? | Excel Discussion (Misc queries) |