Open Excel then return focus to Access

wjoc1

Registered User.
Local time
Today, 17:17
Joined
Jul 25, 2002
Messages
117
Hi,

This is probably going to be a quick one for somebody, I had a search through old posts and couldn't find anything.

I have an Access form and using a button on the form I start an instance of excel. I then have:

Code:
oExcel.Visible

However after I open Excel and make it visible I want to return the focus to the form in the database. How do I do this?

Thanks,
Liam
 
Perhaps AppActivate("Name_Of_App_As_It_Appears_In_TaskBar")
 

Users who are viewing this thread

Back
Top Bottom