J
James K
I looking for some direction on a code snippet that I'm trying to develop. My VBA experience is entirely in Excel, so I'm not sure if this is feasible in Word in the first place.
Context: I have a questionnaire that is very long and has the numbered questions mixed in with lots of irrelevant text and directions for the administrator.
What I want to do is "comb" through a document and pull out any bullet-numbered paragraphs. Then the bullets would be placed into a new doc with the same numbering. Ideally I am going to put these into a lookup in Excel, but at the moment I'm just trying to figure out if this first part is even possible.
I tried parsing the XML with Python, and managed to pull out the text I needed. But I soon realized that there was no practical way to reverse engineer the actual bullet numbers that way.
In short, is there any easy way to identify each number-bulleted paragraph and then copy-paste the bullet and it's contents to another doc?
Thanks for any help or direction in this.
JK
Context: I have a questionnaire that is very long and has the numbered questions mixed in with lots of irrelevant text and directions for the administrator.
What I want to do is "comb" through a document and pull out any bullet-numbered paragraphs. Then the bullets would be placed into a new doc with the same numbering. Ideally I am going to put these into a lookup in Excel, but at the moment I'm just trying to figure out if this first part is even possible.
I tried parsing the XML with Python, and managed to pull out the text I needed. But I soon realized that there was no practical way to reverse engineer the actual bullet numbers that way.
In short, is there any easy way to identify each number-bulleted paragraph and then copy-paste the bullet and it's contents to another doc?
Thanks for any help or direction in this.
JK