Hello,
I am trying to get a workbook to save using a command button so I can get a weekly log of what has changed in the spreadsheet. I need the "master" spreadsheet to save AND a separate workbook saving with the filename of the date it was saved...I can't get the first bit to work, so it saves a copy with the correct filename and displays the message box, but i want the original workbook to save as well...
So i will always have a workbook called "flam bay" which is the copy that is the working copy...and then a weekly workbook so i can see the stock changes in that bay.
I hope that makes sense...
I'd also like it to email a copy under the same filename to a specified email address...but i don't know where to start with this....
Thank you so much in advance...
I am trying to get a workbook to save using a command button so I can get a weekly log of what has changed in the spreadsheet. I need the "master" spreadsheet to save AND a separate workbook saving with the filename of the date it was saved...I can't get the first bit to work, so it saves a copy with the correct filename and displays the message box, but i want the original workbook to save as well...
So i will always have a workbook called "flam bay" which is the copy that is the working copy...and then a weekly workbook so i can see the stock changes in that bay.
I hope that makes sense...
VBA Code:
Private Sub CommandButton1_Click()
Dim CurrDate As String
CurrDate = Format(Date, "DD.MM.YY")
ActiveWorkbook.SaveAs Filename:="U:\Operations, Compliance, SHE & Quality\Technical\Chemists\Flam Bay\" & fName & "\Flam Bay" & fName & " - " & CurrDate & ".xlsm" _
MsgBox "Workbook Saved!", vbInformation, "Check"
End Sub
I'd also like it to email a copy under the same filename to a specified email address...but i don't know where to start with this....
Thank you so much in advance...