N
Nickis
I'm using Excel 2003.
On Save I want to populate the "suggested" file name from a value in a
worksheet cell and let the user know what has been done.
Below is what I have, but it's not working like I want. Currently, it saves
the file (and does it correctly), but gives the message twice and then still
takes the user to the File Save Option (where they can see their file has
already been saved).
*****************
Private Sub Workbook_BeforeSave(ByVal SaveAsUI As Boolean, Cancel As Boolean)
Dim ThePath As String
ThePath = ThisWorkbook.Path
ChDir ThePath
ActiveWorkbook.SaveAs Filename:=Range("A1").Value
Msg = "The workbook should be saved as Project Name and Today's Date -
format ddmmyy"
Style = vbOKOnly
response = MsgBox(Msg, Style, Title, Help, Ctxt)
End Sub
********************
Any suggestions would be appreciated.
Thanks, Nicki
On Save I want to populate the "suggested" file name from a value in a
worksheet cell and let the user know what has been done.
Below is what I have, but it's not working like I want. Currently, it saves
the file (and does it correctly), but gives the message twice and then still
takes the user to the File Save Option (where they can see their file has
already been saved).
*****************
Private Sub Workbook_BeforeSave(ByVal SaveAsUI As Boolean, Cancel As Boolean)
Dim ThePath As String
ThePath = ThisWorkbook.Path
ChDir ThePath
ActiveWorkbook.SaveAs Filename:=Range("A1").Value
Msg = "The workbook should be saved as Project Name and Today's Date -
format ddmmyy"
Style = vbOKOnly
response = MsgBox(Msg, Style, Title, Help, Ctxt)
End Sub
********************
Any suggestions would be appreciated.
Thanks, Nicki