Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Trapping user switching to another app (say Word) from Excel using VBA

Status
Not open for further replies.

SBendBuckeye

Programmer
May 22, 2002
2,166
US
Hello all,

I am using Application events to trap Workbook and Worksheet Activate / Deactivate events but I need to also Trap the users activating a different application. Can I do this using VBA from Excel?

I know I can use a timer but I would rather react to an event than have the overhead of a time. If I am forced to use a timer, does anyone have any idea of the impact of a 100 millisecond timer to check for windows API GetActiveWindow = current window? Thanks in advance for any ideas and/or suggestions!

Have a great day!

j2associatesNO_SPAM@gmail.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top