I've tried Excel Application Events
Public WithEvents App As Application etc
but this only works when first opening Excel or a Workbook or oggling
between sheets.
As I say, I want to have an excel book open and every time the user
moves into Excel (with the sheet already in "view") from say Outlook or
any other application - Excel receing control - the Macro would run.
Can anyone help?
Thanks
NickHK
"Perry" <perry...@hotmail.com> wrote in message
news:1143749868....@g10g2000cwb.googlegroups.com...
Neither are triggered when returning to Excel (with a Workbook open)
from another application.
Perhaps it's not possible? Although everything appears to indicate
Excel is active and in focus, it seems that the user needs still to do
something in the application for it to actually receive any event
trigger - toggling to is from another application is not enough.
http://discuss.joelonsoftware.com/default.asp?design.4.115661.7
NickHK
"Perry" <perry...@hotmail.com> wrote in message
news:1143790551....@j33g2000cwa.googlegroups.com...
OnTime talks about waiting on a function completing and then the OnTime
function/macro running. This would appear only to be correct if Excel
remains the active application and has not been "deactiviated", to say,
check Outlook in the mean time.