I'm trying to execute a subroutine in a command button's _Click procedure from a separate module in Excel. I want to perform the command button click from code in case the user did not do it manually. I'm using the following code but I get an error.
What am I doing wrong?
Code:
Windows("Form-SampleSubmit.xls").Activate
Sheet1.cmdFill_List.Click