Jagwarman
asked on
make an open workbook an active workbook
can an expert provide me with the vba code to make an open workbook an active workbook.
So, I am in a workbook [lets call it ABC] that has a macro. this workbook needs to refer to another [open] workbook [Lets call that XYZ]
So ABC needs to switch between ABC and XYZ and back from time to time throughout the Macro Process. I thinking that rather than refer to ABC and XYZ I should refer to ThisWorkbook and ????? [XYZ as ??Workbook]
Thanks
So, I am in a workbook [lets call it ABC] that has a macro. this workbook needs to refer to another [open] workbook [Lets call that XYZ]
So ABC needs to switch between ABC and XYZ and back from time to time throughout the Macro Process. I thinking that rather than refer to ABC and XYZ I should refer to ThisWorkbook and ????? [XYZ as ??Workbook]
Thanks
ASKER
Hi ken.
Always in the same instance
Regards
Always in the same instance
Regards
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
both excellent thanks
The answer to your question will be quite a bit different if you need to reach across instances of excel.
If the workbooks are in the same instance of excel, then you will only be able to see workbooks one at a time in the same window.
If the workbooks are in different instances of excel, then you can have the both open at the same time in different windows.