irisqueiroz
Member
Hi!
I'm trying to write a VBA code to:
From workbook_x it opens workbook_y and then run the macros (macro1 and macro2) that are stored in workbook_y.
I tryed this: (its written in workbook_x's VBE)
' Workbooks.Open ("U:workbook_y.xlsm")
Windows("workbook_y.xlsm").Activate
Application.AutomationSecurity = msoAutomationSecurityLow
Application.Run "workbook_y.xlsm!Module1.macro1"
Application.Run "workbook_y.xlsm!Modeule2.macro2" '
But an error message appeared.
Can anyone help me?
Thanks!
I'm trying to write a VBA code to:
From workbook_x it opens workbook_y and then run the macros (macro1 and macro2) that are stored in workbook_y.
I tryed this: (its written in workbook_x's VBE)
' Workbooks.Open ("U:workbook_y.xlsm")
Windows("workbook_y.xlsm").Activate
Application.AutomationSecurity = msoAutomationSecurityLow
Application.Run "workbook_y.xlsm!Module1.macro1"
Application.Run "workbook_y.xlsm!Modeule2.macro2" '
But an error message appeared.
Can anyone help me?
Thanks!