ForumMember
Board Regular
- Joined
- Sep 10, 2011
- Messages
- 57
Hi everyone,
I found some code on this site which should enable me to close my workbook - with my workbook automatically saving the file as a combination of 2 cell values (.xls)
Of course, it does nothing or the sort - but I don't know why?
Any ideas anyone?
I found some code on this site which should enable me to close my workbook - with my workbook automatically saving the file as a combination of 2 cell values (.xls)
Of course, it does nothing or the sort - but I don't know why?
Any ideas anyone?
Code:
Dim strSaveLocation As String
Dim strSaveName As String
strSaveLocation = "E:\"
strSaveName = Range("TestFile") & "H5" & "H3" & ".xls"
ActiveWorkbook.SaveAs strSaveLocation & strSaveName