Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Is there a reason why the file gets saved into My Documents folder instead
of a specific location on D drive? I ran the line carefully and it looks fine but it does not get saved in the expected folder. The ChDir appears to be on strike! Thank you for your help Function saveFile(ByVal thisDir As String, ByVal thisFile As String) Dim isFileExist As Boolean Dim fullPath As String fullPath = thisDir & thisFile isFileExist = fileInExistence(thisDir, thisFile) If isFileExist Then Kill thisDir & thisFile ChDir thisDir ActiveWorkbook.SaveAs fileName:=thisFile, FileFormat:=xlWorkbookNormal, Password:="", WriteResPassword:="", ReadOnlyRecommended:=False, CreateBackup:=False Else ChDir thisDir ActiveWorkbook.SaveAs fileName:=thisFile, FileFormat:=xlNormal, Password:="", WriteResPassword:="", ReadOnlyRecommended:=False, CreateBackup:=False End If End Function |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Saving Excel 2007 file in 2003 creates very large file | Excel Discussion (Misc queries) | |||
Saving worksheet in new file with date AND cell value as file name | Excel Discussion (Misc queries) | |||
Saving multi-tab excel file created from comma delimited text file | Excel Programming | |||
How do I stop Excel 2000 from saving file history from file that . | Excel Discussion (Misc queries) | |||
saving an excel file as an ASCII text file without delimiters | Excel Programming |