getting VBA to click a command button on a form

  • Thread starter Thread starter Paul James
  • Start date Start date
P

Paul James

Is there a line of code I could put in VBA that would trigger the Click
event of a command button on an open form?

Thanks in advance,

Paul
 
Just call the button's Click procedure:

Call CommandButtonName_Click
 
Paul said:
Is there a line of code I could put in VBA that would trigger the Click
event of a command button on an open form?

Just call the event procedure:

commandbuttonname_Click
or
Call commandbuttonname_Click()
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top