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 2005

Tip: Looking for answers? Try searching our database.

Style

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Senad Isanovic - 13 Oct 2005 15:35 GMT
Before I use a style - how do I check that the style exists..? (without
using On Error goto...)

Selection.Style = ActiveDocument.Styles("widPunktlista")
Tony Jollans - 13 Oct 2005 15:58 GMT
Without error-trapping you must walk the collection ..

For Each sty In ActiveDocument.Styles
   If sty.NameLocal = "widPunktlista" then
       ' style exists
       exit for
   endif
Next

--
Enjoy,
Tony

> Before I use a style - how do I check that the style exists..? (without
> using On Error goto...)
>
> Selection.Style = ActiveDocument.Styles("widPunktlista")

Rate this thread:






 
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.