How to get specific text from word document

uiautomation

#1

Hi,
I would like to extract specific text from word document (i.e beside of numbering and bulleted points) and put it into notepad… for ex: in word,
1.1 Chapter 1
* hi
1.2 Chapter 2
* yyy
1.3 Chapter 3
1.4 Chapter 4

bot should produce an output like Chapter 1, Chapter 2, Chapter 3, Chapter 4


Extract Text Between Labels
#2

Check the attached solution

GetWords.zip (12.9 KB)


#3

hi vvaidya
tq for ur response… but the chapter numbers are in numbering and bullets not 1.1… I need to scrape from numberings and bullets value


#4

Consider it as a basic example and use that logic, I’m not sure if you can use bullets as string.You may also try Substring,Split. Good Luck!


#5

hi vvaidya
Actually I used with your logic but it is showing empty… because it is not identifying the numberings and bullets in the word… I scrape the whole document it is generating output without numberings and bullets


#6

Can you share your word?


#7

forum is not allowing me to upload .doc or .docx file… I ll share a pdf copy of it and some screen shots

SOP RECEIVING.pdf (223.3 KB)

I already extracted objective and sections using anchor elements…