Trigger macro on value only

W

wolfesimon

I have a user form with a calculated amount column that contains
formulas.
My users inadvertantly keep deleting these cells.
If I lock them and enable protection, they don't let the program change
calculated values.

My idea was:
To move these cells out of site,
Trigger an ON CHANGE EVENT to run a macro which will copy and PASTE
VALUES ONLY back to the form.

Problem is that the ON CHANGE EVENT only triggers on changes in the
cells formula, not in its calculated displayed value.

Any ideas?
 
B

Bob Phillips

In your program, unprotect the sheet, change values, the protect it again.

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)
 
W

wolfesimon

Sheet is unprotected
Problem is that the ON CHANGE EVENT only triggers on changes in the
cells formula, not in its calculated displayed value.
 
B

Bob Phillips

No I am saying forget your alternative, lock the cells and manage it as I
suggested.

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)
 
W

wolfesimon

Thanks
Sometimes I can't see the obvious.


Bob said:
No I am saying forget your alternative, lock the cells and manage it as I
suggested.

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top