thenum1roc
Board Regular
- Joined
- Jun 2, 2002
- Messages
- 77
I am trying to save an excel file based on some cell values in Excel 2010. I have done it before in 03' and 07' with success; however, for whatever reason the selection prompt comes up, with the file name from the cells, and I press save (NO ERROR RECEIVED)
.........BUT...........I don't see a file in any location where I attempt to save the file.
Please see the code below, Thanks.
Sub cmd_SaveToC_Drive()
Dim strPath As String
Dim strFolderPath As String
strFolderPath = "C:\"
ThisFile = Range("F12").Value & "_" & Range("L12").Value & "_" & Range("F14").Value & ".xls"
fileSaveName = Application.GetSaveAsFilename(InitialFileName:=strFolderPath & ThisFile)
End Sub
.........BUT...........I don't see a file in any location where I attempt to save the file.
Please see the code below, Thanks.
Sub cmd_SaveToC_Drive()
Dim strPath As String
Dim strFolderPath As String
strFolderPath = "C:\"
ThisFile = Range("F12").Value & "_" & Range("L12").Value & "_" & Range("F14").Value & ".xls"
fileSaveName = Application.GetSaveAsFilename(InitialFileName:=strFolderPath & ThisFile)
End Sub