#1
|
|||
|
|||
Check which ListGalleries a list belongs to?
If I have two lists,
the first one is wdNumberGallery and the second one is wdBulletGallery. How could I check in Word VBA which type they belong to? |
#2
|
||||
|
||||
If:
Quote:
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#3
|
|||
|
|||
But how? Can't use Range.Information
|
#4
|
|||
|
|||
Sorry... asking too soon. I'd forgotten ListType.
Code:
Dim oList As List For Each oList In ActiveDocument.Lists If oList.Range.ListFormat.ListType = wdListSimpleNumbering Then ''' wdListSimpleNumbering / 3 oList.Range.Select End If Next oList |
#5
|
||||
|
||||
I was about to post:
Code:
Sub Test() MsgBox Selection.Paragraphs(1).Range.ListFormat.ListType End Sub
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#6
|
|||
|
|||
Anyway, thanks for your replay, though.
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Link word check box to access check box | Mrkieth | Word | 4 | 01-30-2012 06:43 AM |
VBA: How to control Word ListGalleries in Excel? | tinfanide | Excel Programming | 0 | 12-12-2011 03:56 AM |
How to select all paragraphs that belongs to certain "Style" but doesn't take its for | Jamal NUMAN | Word | 6 | 09-21-2011 12:09 PM |
How do you create a list similar to an itunes list? | hatemail13 | Excel | 1 | 08-06-2010 02:21 AM |
Need Help with Using a Check Box | Nick9589 | Excel | 1 | 05-01-2010 09:29 AM |