Hi,
I have MyFirstFile.xls open and I'd like to execute the Marco "Update_Data" in the module "mUpdate" from the MySecondFile.xls. I get "Application-defined or object-defined error" at the .Application.Run "Update_Data".
Set MyXL = GetObject("MySecondFile.xls")
With MyXL
.Application.Visible = True
.Application.DisplayAlerts = False
.Application.Run "Update_Data"
.Save
.Close
End With
Thanks for your helps.
I have MyFirstFile.xls open and I'd like to execute the Marco "Update_Data" in the module "mUpdate" from the MySecondFile.xls. I get "Application-defined or object-defined error" at the .Application.Run "Update_Data".
Set MyXL = GetObject("MySecondFile.xls")
With MyXL
.Application.Visible = True
.Application.DisplayAlerts = False
.Application.Run "Update_Data"
.Save
.Close
End With
Thanks for your helps.