I have a command button present in Sheet1 of book1 with name 'extract data' and the code is as mentioned below
Private Sub ButtonExtractData_Click()
'code
End Sub
I have written the below code and it gives me error:
Cannot run the macro 'Book1.sheet1.ButtonExtractData_Click' macro may not be available in this workbook or all macros may be disabled.
Sub run_macro()
Workbooks.Open Filename:="C:\folder1\book1.xlsm"
Application.Run "book1.xlsm!Control.Sheet1.ButtonExtractData_Click"
End Sub
How can I trigger this button click from another workbook?
ButtonExtractData_Click
I think - Nathan_Sav