IF you are using Office 2000, the command to activate another application from EXCEL 2000 is AppActivate title [,wait]. This works only if the target application is open.
Otherwise you will need to open the file and then the AppActivate command will allow you to move between the two applications.
title = whatever shows in the title bar of the application window. You DO NOT have to use the entire title.
boonlean = True - the calling application has focus before activating target False (default) - the target application has focus immediately whether the calling apllication has focus or not
Sub Sample()
'Switch to MS Word
AppActivate "Master File - Microsoft Word", 0 ' do something 'switch back to MS Excel
AppActivate "Microsoft Excel - Book 1", 0
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.