Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Save As
Okay, I'm trying to save a file to a different directory. So I wote a code
but have a little issue. ChangeFileOpenDirectory "S:\WP\Sales quotes\" ActiveDocument.SaveAs FileName:= _ "S:\WP\Sales quotes\Test 40091.doc" The issue I have is, I don't want to have every document saved as Test 40091, I just want it to do a Save As into the S:\WP\Sales quotes\ and use the current documents name. I know this is a word issue but I figure that it is the same process in excel and you guys seem to be better than those word guys :). |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Save As
hi
not sure what you are working with but.... somehting like this might work..... Dim n As String n = ActiveDocument.Name ChangeFileOpenDirectory "S:\WP\Sales quotes\" ActiveDocument.SaveAs FileName:= _ "S:\WP\Sales quotes\n.doc" regards FSt1 "Cerberus" wrote: Okay, I'm trying to save a file to a different directory. So I wote a code but have a little issue. ChangeFileOpenDirectory "S:\WP\Sales quotes\" ActiveDocument.SaveAs FileName:= _ "S:\WP\Sales quotes\Test 40091.doc" The issue I have is, I don't want to have every document saved as Test 40091, I just want it to do a Save As into the S:\WP\Sales quotes\ and use the current documents name. I know this is a word issue but I figure that it is the same process in excel and you guys seem to be better than those word guys :). |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Save As
Thank you
"FSt1" wrote: hi not sure what you are working with but.... somehting like this might work..... Dim n As String n = ActiveDocument.Name ChangeFileOpenDirectory "S:\WP\Sales quotes\" ActiveDocument.SaveAs FileName:= _ "S:\WP\Sales quotes\n.doc" regards FSt1 "Cerberus" wrote: Okay, I'm trying to save a file to a different directory. So I wote a code but have a little issue. ChangeFileOpenDirectory "S:\WP\Sales quotes\" ActiveDocument.SaveAs FileName:= _ "S:\WP\Sales quotes\Test 40091.doc" The issue I have is, I don't want to have every document saved as Test 40091, I just want it to do a Save As into the S:\WP\Sales quotes\ and use the current documents name. I know this is a word issue but I figure that it is the same process in excel and you guys seem to be better than those word guys :). |
#4
Posted to microsoft.public.excel.programming
|
|||
|
|||
Save As
I think this is what you want:
ActiveDocument.SaveAs _ FileName:="S:\WP\Sales quotes\" & ActiveDoument.Name & ".doc" "Cerberus" wrote in message ... Okay, I'm trying to save a file to a different directory. So I wote a code but have a little issue. ChangeFileOpenDirectory "S:\WP\Sales quotes\" ActiveDocument.SaveAs FileName:= _ "S:\WP\Sales quotes\Test 40091.doc" The issue I have is, I don't want to have every document saved as Test 40091, I just want it to do a Save As into the S:\WP\Sales quotes\ and use the current documents name. I know this is a word issue but I figure that it is the same process in excel and you guys seem to be better than those word guys :). |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Save, save as, page setup dimmed out in unprotected excel sheet? | Excel Discussion (Misc queries) | |||
Command Button Save As Application.ExecuteExcel4Macro ("SAVE.AS?() | Excel Discussion (Misc queries) | |||
Disable save, save as, but allow save via command button | Excel Programming | |||
How to diasble save and save as menu but allow a save button | Excel Programming | |||
Totally Disabling (^ save ) (Save as) and Save Icon – Which code do I use: | Excel Programming |