gmaxey
12-21-2012, 04:16 PM
Regulars here may have been following the project initiated by
Brent Fraser last week to create a dynamic apprasal form:
http://www.vbaexpress.com/forum/showthread.php?t=44751
There was something not quite right about how Brent's pseudo CC event monitor was performing but I didn't have time to dig into it until today.
The event should fire 1) when the user clicks in the CC (because this changes the state) and 2) when the user toggles the state from checked to unchecked and back.
Brent's is doing 1) but not 2).
I've figured out that the reason Brent's isn't working correctly is because he has changed both the checked and unchecked symbols for his monitored checkboxes to Windings characters.
I've been sitting here surrounded by clumps of hair and bloody scalp for most of the afternoon and I just can't nail down why the thing will work with:
1. The default checked and uncheck box.
2. A Windding checked and the default unchecked box.
3. A dollar sign for checked or cent sign for unchecked boxes.
But it won't work with:
1. A pair of similiar Wingding characters for the check and uncheck boxes e.g., a empty box and the x-box, an empy circle and radio button circle, etc.
A file with the working and not working examples is available here:
https://dl.dropbox.com/u/64545773/Company%20Performance%20Appraisal.dotm
As best I can tell, both symbols (when not working) is being interpreted by the monitor as the same symbol e.g., AscW(symbol.checked) and AscW(symbol.unchecked) are both returning 40 which is a opening "(" so I guess the monitor simply can't determine what it is seeing and just pukes up 40.
Hoping that one of the really bright guys or gals haunting this site will take interest and school me on how to determine and distinquish one symbol character displayed in a CC from a different symbol character and detect a change between the two in the monitor procedure found in the document.
Thanks.
Brent Fraser last week to create a dynamic apprasal form:
http://www.vbaexpress.com/forum/showthread.php?t=44751
There was something not quite right about how Brent's pseudo CC event monitor was performing but I didn't have time to dig into it until today.
The event should fire 1) when the user clicks in the CC (because this changes the state) and 2) when the user toggles the state from checked to unchecked and back.
Brent's is doing 1) but not 2).
I've figured out that the reason Brent's isn't working correctly is because he has changed both the checked and unchecked symbols for his monitored checkboxes to Windings characters.
I've been sitting here surrounded by clumps of hair and bloody scalp for most of the afternoon and I just can't nail down why the thing will work with:
1. The default checked and uncheck box.
2. A Windding checked and the default unchecked box.
3. A dollar sign for checked or cent sign for unchecked boxes.
But it won't work with:
1. A pair of similiar Wingding characters for the check and uncheck boxes e.g., a empty box and the x-box, an empy circle and radio button circle, etc.
A file with the working and not working examples is available here:
https://dl.dropbox.com/u/64545773/Company%20Performance%20Appraisal.dotm
As best I can tell, both symbols (when not working) is being interpreted by the monitor as the same symbol e.g., AscW(symbol.checked) and AscW(symbol.unchecked) are both returning 40 which is a opening "(" so I guess the monitor simply can't determine what it is seeing and just pukes up 40.
Hoping that one of the really bright guys or gals haunting this site will take interest and school me on how to determine and distinquish one symbol character displayed in a CC from a different symbol character and detect a change between the two in the monitor procedure found in the document.
Thanks.