Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / April 2006

Tip: Looking for answers? Try searching our database.

Word as Email Editor

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
David - 21 Apr 2006 10:18 GMT
General Question:
What characteristics of Word or the particular document are they that
display as an email editor, rather than a normal document? How can one tell
from VBA which mode a document represents?

Specific:
Word always seems to start up with the window mode in which it was last used
ie Full Screen or smaller window. I would like to start all normal documents
up full-screen but the email editor as a smaller window eg by code in the
document open event. How would I do this, please? Are there any settings that
would help, without involving VBA?

David
James - 21 Apr 2006 16:22 GMT
You could check to see whether the E-mail toolbar is visible...
Signature

James

> General Question:
> What characteristics of Word or the particular document are they that
[quoted text clipped - 9 lines]
>
> David
champollion.yves@wanadoo.fr - 21 Apr 2006 21:00 GMT
> General Question:
> What characteristics of Word or the particular document are they that
> display as an email editor, rather than a normal document? How can one tell
> from VBA which mode a document represents?

you know that a document is actually an email being edited in Outlook
(with Outlook setup to use Ms-Word as editor) by looking up the
document's kink property:

If ActiveDocument.Kind = wdDocumentEmail Then...

> Specific:
> Word always seems to start up with the window mode in which it was last used
> ie Full Screen or smaller window. I would like to start all normal documents
> up full-screen but the email editor as a smaller window eg by code in the
> document open event. How would I do this, please? Are there any settings that
> would help, without involving VBA?

I don't think so, since you're testing a condition (is this an email?
If so then...else ...). VBA coding will be needed, and would look like
that:

If ActiveDocument.Kind = wdDocumentEmail Then
   ActiveWindow.WindowState = wdWindowStateNormal
Else
   ActiveWindow.WindowState = wdWindowStateMaximize
End If

HTH,
Yves Champollion
www.champollion.net
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.