Hello
You need to put the code into the Worksheet's (Cleanliness Audits) Calculate Event, not into a Module has you have done. In the VBA editor, double click the Sheet name and from the two dropdowns in the code window select 'Worksheet' and 'Calculate'. I've adjusted the code slightly:
However, the line will go to the first number above, so 91 for example, the line will be at 95 as it's greater than 90. Is that correct?
*Note I should have mentioned. When this macro fires after a sheet calculation, the Undo facility will not be available. One of the drawbacks in using VBA, I'm afraid.
Bookmarks