I have a form with a command button, which leads to the next procedure if clicked. Sub CommandButton1_Click() 'process the info from form End Sub Now I am calling up this form in a loop. How could I click the button automatically by vba? Sub Main() For i = 1 to 100 MyForm.show 'the command button on MyForm will need to be click to process info Next i End Sub