Android Question Press the button through code

Put the logic from the button_click sub into a normal sub which you then just call...

Instead of

Code: Copy
sub button_click
' doing a lot of stuff here
end sub

you can do something like

Code: Copy
sub button_click
subwhodidthestuff
end sub
sub subwhodidthestuff
' doing a lot of stuff here
end sub

And if you then want to "simulate" a button click you just call the sub subwhodidthestuff
 
Upvote 0
Back
Top