Hi all,
Can anyone help me with this one? I have created a userform to popup when anyone would try to save the file. What I need is whenever someone presses CTRL+S or clicks the save button a popup window would appear (my userform), where they would have to click a radio button to acknowledge how the file was changed, to track revisions (Major, Minor, Miscellaneous or No Change). Depending which would be highlighted, the revision number would change on the sheet. Also is excel able to extract user ID from the PC? Because I would like to keep track of who did the last change.
I found this code:
Which actually works and before save it shows the form. But the form have a proceed to save button which doesOption Explicit
Private Sub Workbook_BeforeSave(ByVal SaveAsUI As Boolean, Cancel As Boolean)
SaveForm.Show
End Sub
But that then loops back to beforesave, How would I bypass this and proceed to save?Private Sub Button_Save_Click()
ThisWorkbook.Save
End Sub
And about the revision tracking, it starts at 1.0.0, is it possible to have that number in 1 cell or does it need to be 3 different cells in order to change the numbers independently? With my basic knowledge I would probably do it like this
But this would mean that whenever I choose that button it will automatically increase the value, I need it to do it only if Save button is clicked.Sub OptionMajor_Click()
Sheet1.Range("AE58").Value = Range("AE58").Value + 1
End Sub
Any help would be appreciated
Bookmarks