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 / October 2007

Tip: Looking for answers? Try searching our database.

Is there an 'address' object?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
C Hayes - 30 Oct 2007 17:27 GMT
Word has the ability to find an address and use it with it's envelope/label
tool.  Is there an acessable object that does this?

i.e.

Dim MyAddress
Set MyAddress = New [object that retrieves address from a document]
C Hayes - 30 Oct 2007 19:18 GMT
I kept digging throug the object browser and finally found this.  I thought
I'd share it just in case someone else had the same question.

Sub envelopetest()
Debug.Print ActiveDocument.GetLetterContent.RecipientName
Debug.Print ActiveDocument.GetLetterContent.RecipientAddress
End Sub

This should extract the address from a document.  You could assign the text
to a string and manipulate it as necessary.  I plan on making my own envelope
printer due to the inability of controling formatting in the given 'envelope'
object.

> Word has the ability to find an address and use it with it's envelope/label
> tool.  Is there an acessable object that does this?
[quoted text clipped - 3 lines]
> Dim MyAddress
> Set MyAddress = New [object that retrieves address from a document]
 
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.