Rajesh Kr Joshi
08-23-2012, 10:14 PM
Hi ,
What is the best method to select a workbook to run macro? I have tried 2 different codes (Below), but both of them sometime gives error: 'Subscription out of Range'. Also this seems an intermittent problem as sometime it works fine.
Workbooks("Mydata").Activate
Windows("Mydata").Activate
Thanks
Rajesh
What is the best method to select a workbook to run macro? I have tried 2 different codes (Below), but both of them sometime gives error: 'Subscription out of Range'. Also this seems an intermittent problem as sometime it works fine.
Workbooks("Mydata").Activate
Windows("Mydata").Activate
Thanks
Rajesh