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 2007

Tip: Looking for answers? Try searching our database.

Finding labels in Word

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Lloy Sanders - 17 Apr 2007 19:35 GMT
I have a nice little script to find custom labels set up in Word.

   Set objWord = CreateObject("Word.Application")
   objWord.Documents.Add

   For iCnt = 1 To objWord.MailingLabel.CustomLabels.Count
       strLabel = objWord.MailingLabel.CustomLabels.Item(iCnt).Name
       cboTemplates.Items.Add strLabel
   Next
   objWord.Quit
   Set objWord = Nothing

Works great, but how do I find the built in labels (e.g. the Avery labels,
etc.)?  Thanks
Cindy M. - 18 Apr 2007 17:27 GMT
Hi Lloy,

> I have a nice little script to find custom labels set up in Word.
>  
[quoted text clipped - 10 lines]
> Works great, but how do I find the built in labels (e.g. the Avery labels,
> etc.)?

This isn't exposed in the object model. Possibly because the labels all come
from third parties...

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 17 2005)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or
reply in the newsgroup and not by e-mail :-)
 
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.