How does one use the Paragraph.SeparateList() method in Word Interop dotnet?

MichaelElder-0822 1 Reputation point
2022-12-07T17:29:45.587+00:00

This is the command in question: microsoft.office.interop.word.paragraph.separatelist

Any attempt to use this method results in the exception: This command is not available.
at Microsoft.Office.Interop.Word.Paragraph.SeparateList()

I am seeking to separate a Numbered List into two lists. I have successfully isolated the Paragraph object of #10 in the list. I can interact with this Paragraph object without any problems; for example I can use Paragraph.Range.ListFormat.ListValue to return "10" or change the text formatting.

My intent is to use Paragraph.SeparateList() to reset the numbering to 1. This is always throwing the aforementioned exception for me. What is this Method expecting as an input?

Microsoft 365 and Office | Development | Other
Developer technologies | Visual Basic for Applications
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.