Poked around MSDN & Support.uSoft to no avail. A while back I couldn't
get WinNT to do DoEvents correctly (its a bit protective of 'em) and
now I can't get then to shut off!
Q:
Do Events have something like variable scope / lifetime?
Problem:
Setup pretty simple.
I have a Combo box in a sheet, linked to a cell and it works fine and
fires an event and executes the ComboBox_Change() Sub when the user
(manually) change the combo box value.
There are times, however, when I want to change the value of the linked
cell (via the execution of code), but NOT fire the Change Sub for the
ComboBox, sheet, or ThisWorkbook. (I do want the value displayed in
the comboBox to change appropriately). I don't want the ComboBox
change sub to run when I change the cell value with code. However,
the 'ole Excel Events think differently. While it turns out that
execution of that code, in this situation, isn't a disaster, it does an
operation that is redundant.
I use Application.EnableEvents = False in other areas, but I can't get
it to work for all situations and this is one.
Is there something about changing the value of a cell linked to a
control in a sub in a regular module , but not being able to disable
events connected with the control in the regular module?
[[by regular module I mean the ones at the bottom of the project
explorer -- not sheet, not forms, not class]]
It could be another one of NT's persnicketty characteristics...gotta re-
do this OS...