M
monster
I have the follwowing to save as a form:
Sub SaveAs()
'
ChDir "V:\Netshare\Item Master Creation\2005 Item Request Submission"
Do
fName = Application.GetSaveAsFilename
Loop Until fName <> False
ActiveWorkbook.SaveAs Filename:=fName, FileFormat:=xlNormal
End Sub
Problems:
1. It doesn't go to the directory that I have above: "V:\Netshare\Item
Master Creation\2005 Item Request Submission"
2. I want to enter a message box that confirms that yes they want to save
after they have entered the name in the save as box. In the Excel hlp I was
just able to get this code:
fileSaveName = Application.GetSaveAsFilename( _
fileFilter:="Text Files (*.txt), *.txt")
If fileSaveName <> False Then
MsgBox "Save as " & fileSaveName
End If
....for this mesage box it only states the name of the file and an OK button
only, but when I hit the OK button it won't proceed, won't save. What I
would like is a message box with Yes & No button and if yes is selected to
save and if no to exit workbook and not save any changes.
Can you help? I really apprciate it.
Sub SaveAs()
'
ChDir "V:\Netshare\Item Master Creation\2005 Item Request Submission"
Do
fName = Application.GetSaveAsFilename
Loop Until fName <> False
ActiveWorkbook.SaveAs Filename:=fName, FileFormat:=xlNormal
End Sub
Problems:
1. It doesn't go to the directory that I have above: "V:\Netshare\Item
Master Creation\2005 Item Request Submission"
2. I want to enter a message box that confirms that yes they want to save
after they have entered the name in the save as box. In the Excel hlp I was
just able to get this code:
fileSaveName = Application.GetSaveAsFilename( _
fileFilter:="Text Files (*.txt), *.txt")
If fileSaveName <> False Then
MsgBox "Save as " & fileSaveName
End If
....for this mesage box it only states the name of the file and an OK button
only, but when I hit the OK button it won't proceed, won't save. What I
would like is a message box with Yes & No button and if yes is selected to
save and if no to exit workbook and not save any changes.
Can you help? I really apprciate it.