Check for Outlook instance

G

Guest

Hi all,
I have an email report button on one of my forms which creates a snapshot
report and sends it off to the required recipients. I need some code to run
before the report code to check to see if Outlook is open and if not, open
it. I imagine the code would be something like:

if not isopen(outlook.exe) then
Shell ("C:\Program Files\Microsoft Office2k\Office\outlook.exe")
end if

Can anyone supply the correct code??

Thanks in advance
Dave
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top