Tracking my employee's history of changes.

ZEUSZEUS

New Member
Joined
Apr 1, 2009
Messages
35
Have a dilemma.
I am using excel as point of sale book (to record customer name, service, and total price etc.) at our hair salon. We have employees that may be there to manage alone from time to time, and enter clients into excel.
Our worry is straight forward, and involves them erasing what they wrote. I am confident that the actual service and price is entered at the beginning, but want to track their changes to their own entries.

The "track changes" would work if it "tracked changes" after entry. But it seems to track the last change from saving. For example....the employee enters $40.25 presses enter--after she knows she can get away with a change, she may erase it altogether or change it to say $16.75.

Please help.
Thanks in advance
 
Is there a way to track the change in a cell which is linked to an option button using this code?
 
Upvote 0
As far as I know changing the value of an option button won't trigger the event code that is used.
 
Upvote 0
If you are using ActiveX buttons you may be able to use this

Code:
Private Sub OptionButton1_Change()

End Sub
 
Upvote 0
So simple, yet brilliant! Thanks for blasting away the cobwebs. . . I'll just include handlers for each button.
 
Upvote 0
bringing this one up from the past as it is what i thought i needed...

Here is what I have loaded:


Private Sub Workbook_SheetChange(ByVal Sh As Object, ByVal Target As Range)
Dim LR As Long, X As Variant
If Sh.Name = "Log" Then Exit Sub
X = Target.Value
With Application
.EnableEvents = False
.ScreenUpdating = False
If Target.Count = 1 Then .Undo
End With
With Sheets("Log")
' .Unprotect Password:="pw"
LR = .Range("A" & Rows.Count).End(xlUp).Row
.Range("A" & LR + 1).Value = Now
.Range("B" & LR + 1).Value = Sh.Name
.Range("C" & LR + 1).NumberFormat = "@"
.Range("C" & LR + 1).Value = Target.Address(False, False)
.Range("D" & LR + 1).Value = Target.Value
.Range("E" & LR + 1).Value = X
.Range("F" & LR + 1).Value = Environ("username")
' .Protect Password:="pw"
End With
If Target.Count = 1 Then Target.Value = X
On Error Resume Next
Target.Offset(, 1).Select
On Error GoTo 0
With Application
.EnableEvents = True
.ScreenUpdating = True
End With

End Sub

this works great when anything is done within a cell. however, i have added buttons that run various macros. when i use one of the buttons, the above code freezes up. Is there a way to keep the above sub from running when i use my macro enabled buttons? One of those buttons is for notes. my associates can click it and an input box pops up for them to type in any notes they need to make that are added to a separate tab - date stamped in column a, notes in column b. this one really throws off the above code, so would rather not even have it log anything done when using certain macros.

also, the workbook the above sub is saved in is a template. i have another workbook that "kicks off" a large macro that does several things within the template workbook then asks the user to save as a new file name, then it closes out the template. i really do not want the above sub to run in the template workbook, but do need it within the newly created workbook my associates will be using. is there a way to have it added to the new workbook and not actually work in the template? is there vba code to add a macro to a workbook as a private sub?

thanks!
 
Upvote 0

Forum statistics

Threads
1,226,832
Messages
6,193,211
Members
453,780
Latest member
Nguyentam2007

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top