A
aprice
I have a VBA script that retrieves attachements from
Outlook emails. It works fine if Outlook is not running.
However, if Outlook is running, Outlook gets the focus
(Outlook is the active window), and I am unable to return
back to Access without clicking on the taskbar.
Is there a vba command that will automatically return the
focus back Access? I have tried SendKeys with ALT+TAB, but
this screws up is Outlook is not running but something
else is like Word. The end result is I ALT+TAB to Word.
Outlook emails. It works fine if Outlook is not running.
However, if Outlook is running, Outlook gets the focus
(Outlook is the active window), and I am unable to return
back to Access without clicking on the taskbar.
Is there a vba command that will automatically return the
focus back Access? I have tried SendKeys with ALT+TAB, but
this screws up is Outlook is not running but something
else is like Word. The end result is I ALT+TAB to Word.