I need to have my business quote form PRINT AND SAVE macro automatically save the new quote file to a different PC on the network. For years I’ve only had quotes being written on my main OFFICE PC. Now they will be getting written on both the OFFICE PC and the OFFICE2 PC but should all be saved in one location of the original OFFICE PC.
The following code has worked correctly for years by saving the file on the same PC that it was created on:
‘ THE FOLLOWING STATEMENT SAVES THE NEW QUOTE FILE
Range(“A1”).Select
Set Workbook = ActiveSheet
‘ Do
fName = Application.GetSaveAsFilename(“.xls”)
‘ Loop Until fName False
Workbook.SaveAs Filename:=fName
Now though if the quote has been created on OFFICE2 it needs to get saved on OFFICE instead. Running the RECORD macro feature I get the following:
ChDir “\OfficedMS Office DocumentsQuotes”
ActiveWorkbook.SaveAs Filename:= _
“\OfficedMS Office DocumentsQuotesTemp network.xls”, FileFormat:= _
xlNormal, Password:=””, WriteResPassword:=””, ReadOnlyRecommended:=False _
, CreateBackup:=False
This works except it doesn’t give me the option of entering a file name.
I’ve tried blending the 2 sets of code by inserting the fName descriptions but have not been successful. If the option to enter a filename works then I remain on the OFFICE2 PC for the save location. If the file is getting saved on the OFFICE PC where I want then its defaulting to “Temp network.xls” as the file name.
I’m close but just can’t seem to find the right way to do this.
As always your help is enormously appreciated.
BH