I autoformat tables based on options that the user selects in a UserForm that pops up when the user runs the macro. Some rows in the table are are just text, and some rows are outline numbered headings. Sometimes the headings have manual numbering, and sometimes they don't. One of the options I would like to provide to the users is to turn on or off the outline autonumbering in the Word document if the heading rows have manual numbering.
It used to be easy to do before Word 2010 - I could turn Outline Numbering on or off for all the heading styles just by changing Heading 1 because all my other heading styles are based on Heading 1. But with Word 2010, which has the new List Style Gallery for Outline Numbering, I am having a heck of a time figuring out how to apply (or remove) outline numbering from all 9 heading styles using VBA, and there doesn't seem to be much discussion about how to do this anywhere. I have a named multilevel numbered list style in the gallery called "Headings" (as suggested by Shauna Kelly in her very informative tutorial about setting up list styles), but as far as I can figure out there isn't a way to apply a named list style to the selection using VBA. Even if I could, I don't think the change would propagate to the remaining heading styles so that all the headings in the document inherit the numbering scheme.
Anybody have any ideas?
Thanks
Susan