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
 
Forgot to mention that the laptop I bought for the salon has Vista. Can I use Excel versions 10 or 11 on Vista?
 
Upvote 0
Hi Peter,
Wow, the code "worked a treat!" as you Brits would say. I am very impressed now that we tried a little test on it tonight and we see it in action. Thank you very much for this help! My wife and I are going to try some more testing tomorrow.

1) I did notice though that when we erased a line (ie. right click on line 4 for example and delete) it can't indicate that. What it does is it writes a time format for the "Cell Address" ie. 4:04 (also when highlighted it means "4:04:00 AM" in the function line)--no clue why though. Is there a way to indicate this deletion of a line, and/or is there a way to eliminate deletion of lines altogether?

2)Is there a way to have different loggers between myself and each worker (that expires after 30seconds to a minute)? . Can the "Log" indicate the loggers too?

Great stuff!
-Tom in Toronto:biggrin:
 
Upvote 0
The row display was just a formatting thing. With the amended code below deleting row 4 will display 4:4 and deleting column B will display B:B. I've added column E to contain the user's Windows logon name so that provided you switch users it will record who made the change:

Code:
Private Sub Workbook_SheetChange(ByVal Sh As Object, ByVal Target As Range)
Dim LR As Long
If Sh.Name = "Log" Then Exit Sub
Application.EnableEvents = False
With Sheets("Log")
    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 = Environ("username")
End With
Application.EnableEvents = True
End Sub
 
Upvote 0
Hi Peter,

1) I made the changes. This morning and can't get the log to record new tests. A warning popped up saying
"Macros are disabled because security level is set to High and a digitally signed Trusted Certificate is not attached to the macros....." is this affecting it, what do you recommend?

2) When I close "view code" is it already saved and running in the background of the workbook (it doesn't have a save button)?
 
Upvote 0
1) Go to Tools > Macros > Security and lower the security setting.

2) As soon as you change the code the new version comes into effect. However, it would be sensible to save the workbook after changing the code.
 
Upvote 0
1) Is there a quick way to auto log-off users so as to log-in quick to the open sheet (just so "log" indicates who is using).

2) When entering a customer into the line, we would like to enter it across a line from A to F. Is there a way to move the cursor sideways by pressing "enter" (without "tabbing"), or is it something we must get used to?

BTW, The code is working really well. I tried deleting two and three lines at a time from line 3 for example, and it shows me 3:4 or 3:5. So far this "code" allows for an awesome account of what is happening. Very pleased.
thank you ;)
-Tom in Toronto

PS- I put in excel 2003 on my vista laptop to use with my excel 2002 Xp interchangeably (without a pack). I am aiming to bring this to work for Thursday! :eeek:
 
Upvote 0
1) You can use Fast User Switching in Windows. See Windows Help.

2) I *think* (because I'm using 2007) that in 2003 it is Tools > Options > Edit tab, Sfter Pressing Enter move selection and pick Right.
 
Upvote 0
To prevent a sheet being deleted Tools > Protection > Protect Workbook, tick Structure, apply a password and click OK.
 
Upvote 0

Forum statistics

Threads
1,226,795
Messages
6,193,045
Members
453,772
Latest member
aastupin

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