getting VBA to click a command button on a form

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
 
M

Marshall Barton

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()
 
Top