• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Click a button in Worksheet

Hi,

I need to click a button in the first worksheet of the workbook using VB scripting.

Eg:
There is a button named "Run_1" in the worksheet. Run_1 is the button which executes the macro. I need to programmatically click this button from outside using VB Script.

Can anyone help me..
 
You just need to know the name of the macro that the button calls, and then your new script would be something like:
Code:
Sub NewMacro()
Call OldMacroName
End Sub
 
Back
Top