Am I in Outlook or Word

T

Tim Cadieux

Ok, I already have a project running in Word. When a
client runs my macro, it opens the WordDialog and allows
them to save their documents to predefined locations with
the BuiltInProperties filled out. When in outlook, this
Macro appears because word is our editor. My clients
would like to continue to be able to use it to save
Emails.
I need to be able to detect whether or not the client in
in Word or Outlook when the macro is fired so that I could
change the Extension to either .Doc or .Msg

Any ideas?
 
W

Word Heretic

G'day "Tim Cadieux" <[email protected]>,

methinks sys call to focussed window's ultimate parent might be in
order - way beyond scope of group.


Ok, I already have a project running in Word. When a
client runs my macro, it opens the WordDialog and allows
them to save their documents to predefined locations with
the BuiltInProperties filled out. When in outlook, this
Macro appears because word is our editor. My clients
would like to continue to be able to use it to save
Emails.
I need to be able to detect whether or not the client in
in Word or Outlook when the macro is fired so that I could
change the Extension to either .Doc or .Msg

Any ideas?

Steve Hudson

Word Heretic, Sydney, Australia
Tricky stuff with Word or words for you.
wordheretic.com

If my answers r 2 terse, ask again or hassle an MVP,
at least they get recognition for it then.
Lengthy replies offlist require payment.
 

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