How do you trigger an "On Click" event programatically
Rob Wills schrieb:
I have a spreadsheet - which is locked - in which I need to click a button to
trigger a process.
However I wish to add this to a scheduler, so that this is triggered
automatically.
I don't think that you have a chance to trigger an event. The easiest
way to solve this, is the following:
- Put the whole code which runs in the 'Btn_Click' subroutine
in a seperate subroutine. Call this subroutine from the
'Btn_Click' subroutine.
- You can call this subroutine now from every other subroutine instead
of triggering a click event on the button.
HTH,
Christian
|