G
Guest
Dear all,
I have a snippet of code which keeps falling over on the Auto Open macro
part - can someone pls help? (I've cut out the non-relevant stuff below). n
is an integer which just loops through an array of workbooks.
FYI, normally the sheets are hidden for security reasons, but the AutoOpen
unhides the sheets and unprotects them.
---------
With appXL.Application
.Visible = True
.Workbooks.Open Filename:=Path & wb(n) & ".xls", UpdateLinks:=0
.ActiveWorkbook.RunAutoMacros xlAutoOpen
.ActiveWorkbook.sheets("data").select
End With
---------
Thanks
Phil
I have a snippet of code which keeps falling over on the Auto Open macro
part - can someone pls help? (I've cut out the non-relevant stuff below). n
is an integer which just loops through an array of workbooks.
FYI, normally the sheets are hidden for security reasons, but the AutoOpen
unhides the sheets and unprotects them.
---------
With appXL.Application
.Visible = True
.Workbooks.Open Filename:=Path & wb(n) & ".xls", UpdateLinks:=0
.ActiveWorkbook.RunAutoMacros xlAutoOpen
.ActiveWorkbook.sheets("data").select
End With
---------
Thanks
Phil