Hi,
I am getting follwoing error while running below macro:
Microsoft Office Excel cannot access the file 'c:\Documents and Settings\Kaka\Desktop\Attachment_6\24\2011'. There are several possible reasons:
Sub SaveMe()
Dim fName As String
fName = Application.GetSaveAsFilename("Attachment_" & Date, FileFilter:="Excel Files (*.XLS), *.XLS", Title:="Save As")
ActiveWorkbook.SaveAs Filename:=fName
End Sub
Any help would be greatly appreciated.
Thanks
I am getting follwoing error while running below macro:
Microsoft Office Excel cannot access the file 'c:\Documents and Settings\Kaka\Desktop\Attachment_6\24\2011'. There are several possible reasons:
- The file name or path does not exist.
- The file is used by another program.
- The workbook you are trying to save has the same name as a
Sub SaveMe()
Dim fName As String
fName = Application.GetSaveAsFilename("Attachment_" & Date, FileFilter:="Excel Files (*.XLS), *.XLS", Title:="Save As")
ActiveWorkbook.SaveAs Filename:=fName
End Sub
Any help would be greatly appreciated.
Thanks