J
jcar
I'm designing a macro which has a userform with controls (Listbox, ToggleBox
and TextBoxes) to enter data into a worksheet. When I write code to validate
the data, ie is a room vacant? or to change a .Text property for a control -
when I refer to a control the subroutine for that control is run immediately
because I've Changed or Clicked on that control. What is the best way to
temporarily turn off the Event trigger for a subroutine connected to a
control. I've tried Enabled = false in Properties and
Application.EventEnabled = False in code both without success. I'm stuck,
please help.
and TextBoxes) to enter data into a worksheet. When I write code to validate
the data, ie is a room vacant? or to change a .Text property for a control -
when I refer to a control the subroutine for that control is run immediately
because I've Changed or Clicked on that control. What is the best way to
temporarily turn off the Event trigger for a subroutine connected to a
control. I've tried Enabled = false in Properties and
Application.EventEnabled = False in code both without success. I'm stuck,
please help.