none
Detect whether a list is numbered (Publisher 2010) RRS feed

  • Question

  • Hi,

    What is the best way to detect whether a list is numbered when automating Publisher?

    For example to avoid this error (https://msdn.microsoft.com/en-us/library/office/ff939596.aspx?f=255&MSPPError=-2147217396):

    You must set the ListType property to a numbered list type before you set the ListNumberSeparator property. Returns an "Access Denied" message if the list is not a numbered list.

    The PbListType Enumeration (https://msdn.microsoft.com/en-us/library/office/ff939123.aspx) does not make things very clear to me.

    For the time being, I'm using this logic, but I'd be very interested if someone else knows a better way:

    The list is numbered if .ListType is not pbListTypeBullet or pbListTypeNone.

    Thanks in advance!

    Friday, August 14, 2015 7:28 AM

All replies

  • >>>For the time being, I'm using this logic, but I'd be very interested if someone else knows a better way:

    The list is numbered if .ListType is not pbListTypeBullet or pbListTypeNone.

    According to your description, I have tried to find a better way to detect whether a list is numbered, unfortunately, I didn't find the other better way base on my searching.

    Wednesday, August 19, 2015 9:50 AM
  • Thanks a lot for giving it a go, David.

    I wouldn't mind having to write a long switch statement in order to classify the different list types, but I haven't been able to find a resource with information about the different list types...

    Monday, August 24, 2015 7:26 AM