![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Guest
Posts: n/a
|
I have a workbook that I want to save using information in a cell as the file name. I want this workbook to be saved to a location on our server rather than the default location in my hard drive. I've written some code as shown below. I've got the first part of the code worked out but I'm still having a problem with it saving to the server instead of my hard drive.
Private Sub CommandButton3_Click() ThisFile = Range("G3") & Range("I3").Value ActiveWorkbook.SaveAs Filename:=ThisFile ActiveWorkbook.SaveAs Filename:= _ (maybe here to) "\Pchq7ntoffshoreMaintenanceSouth Tim FormsWork OrdersUncompleted Work Orders????????????????????? _ , FileFormat:=xlNormal, Password:="", WriteResPassword:="", _ ReadOnlyRecommended:=False, CreateBackup:=False End Sub |
|
|
|
#2 | |
|
MrExcel MVP
Join Date: Feb 2002
Location: Bogota, Colombia
Posts: 11,927
|
Quote:
ActiveWorkbook.SaveAs Filename:= _ (maybe here to) "Pchq7ntoffshoreMaintenanceSouth Tim FormsWork OrdersUncompleted Work Orders" & ThisFile _ , FileFormat:=xlNormal, Password:="", WriteResPassword:="", _ ReadOnlyRecommended:=False, CreateBackup:=False |
|
|
|
|
|
|
#3 |
|
MrExcel MVP
Join Date: Feb 2002
Location: Bogota, Colombia
Posts: 11,927
|
Should appear like this
"\Pchq7ntoffshoreMaintenanceSouth Tim FormsWork OrdersUncompleted Work Orders" & ThisFile |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|