Hi again,
I think the attached file does what you want and incorporates all the following code. You should probably delete the macros from the previous solution and replace them with the new macros. The new solution requires:
a. Workbook_Open() to store the original values in column G. This is needed when a formula changes one or more of the values in Column G.
b. Worksheet_Calculate() to update the CheckBoxes when a formula changes one or more of the values in Column G.
c. Worksheet_Change() to update a CheckBox when the corresponding value in Column G changes.
This incorporates the ability for a cell in another Sheet to change the value in Column G via formula.
VERY IMPORTANT - It is ASSUMED that the 'Column G' data is on "Sheet1". If this is NOT the case, then the value of 'sSheetForColumn_G_RANGE' on line 4 of Module 'ModCheckBoxes' MUST BE CHANGED to the name of the proper SHEET.
I tested the code pretty thoroughly. Please let me know if you have any problems or questions.
Lewis
Code in Module 'ThisWorkbook':
Code in Module 'Sheet1':
Code in Module 'ModCheckBoxes':
Code in Module 'ModShapes'. This is needed if the 'CheckBox' names are not 'CheckBox1' thru 'CheckBox20' as stated in my previous post:
Bookmarks