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 / November 2004

Tip: Looking for answers? Try searching our database.

detecting bullet applied to paragraph object

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
keith brickey - 15 Nov 2004 18:03 GMT
How can I detect whether or not a bullet has been applied to a paragraph?

Thanks,

Keith
Jean-Guy Marcil - 15 Nov 2004 19:46 GMT
keith brickey was telling us:
keith brickey nous racontait que :

> How can I detect whether or not a bullet has been applied to a
> paragraph?

Here is a little something to get you going:

'_______________________________________
'Use the commented lines instead of the other ones
'if you want to work with a user selection
'that could encompass many paragraphs

Dim myPara As Paragraph
'Dim myRange As Range

Set myPara = Selection.Paragraphs(1)
'Set myRange = Selection.Range

With myPara
'With myRange
   Select Case Range.ListFormat.ListType
'    Select Case .ListFormat.ListType
       Case wdListBullet
           MsgBox "This selection has a bullet."
       Case wdListListNumOnly
           MsgBox "This selection has field numbering."
       Case wdListMixedNumbering
           MsgBox "This selection has some numbering and /or bullets."
       Case wdListNoNumbering
           MsgBox "This selection has no bullet or numbering."
       Case wdListOutlineNumbering
           MsgBox "This selection has an outline numbering scheme."
       Case wdListPictureBullet
           MsgBox "This selection has a picture bullet."
       Case wdListSimpleNumbering
           MsgBox "This selection has simple numbering."
   End Select
End With
'_______________________________________

Signature

Salut!
_______________________________________
Jean-Guy Marcil - Word MVP
jmarcilREMOVE@CAPSsympatico.caTHISTOO
Word MVP site: http://www.word.mvps.org

keith brickey - 15 Nov 2004 21:07 GMT
Thank you for responding. What is a 'PictureBullet?'

> keith brickey was telling us:
> keith brickey nous racontait que :
[quoted text clipped - 36 lines]
> End With
> '_______________________________________
Jean-Guy Marcil - 15 Nov 2004 21:09 GMT
keith brickey was telling us:
keith brickey nous racontait que :

> Thank you for responding. What is a 'PictureBullet?'

A bitmap used as a bullet instead of a font symbol.

Signature

Salut!
_______________________________________
Jean-Guy Marcil - Word MVP
jmarcilREMOVE@CAPSsympatico.caTHISTOO
Word MVP site: http://www.word.mvps.org

 
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.