Hi everyone,
I am a beginner when it comes to VBA programming. I only know basic functions and know how to record a macro.
I need your help to facilitate me a task.
I am trying to extract specific information from many word documents and put them in a common excel table.
I attached a sample screenshot of what each word document looks like and removed sensitive data. Please pay attention to the text in red, as this is the text I want to extract through a VBA script:
String #1 - Text at the right of ''Risk Name :''
--> string of variable length
String #2 - The number next to COST EFFECT(k$) ( in this case 200)
Extracting any of the two strings shown will work.
Now I want to extract these 2 strings from about 40 word docx and put them in an excel table where column A will contain 40 rows of each word documents with their corresponding string #1 . And column B will have 40 rows of each word document with corresponding string #2 .
Assume all word docx have the same format and only the strings value changes.
Any help will be greatly appreciated.
Thanks!
word document to extract strings from : https://omar23j.imgur.com/all/?third_party=1
I am a beginner when it comes to VBA programming. I only know basic functions and know how to record a macro.
I need your help to facilitate me a task.
I am trying to extract specific information from many word documents and put them in a common excel table.
I attached a sample screenshot of what each word document looks like and removed sensitive data. Please pay attention to the text in red, as this is the text I want to extract through a VBA script:
String #1 - Text at the right of ''Risk Name :''
--> string of variable length
String #2 - The number next to COST EFFECT(k$) ( in this case 200)
Extracting any of the two strings shown will work.
Now I want to extract these 2 strings from about 40 word docx and put them in an excel table where column A will contain 40 rows of each word documents with their corresponding string #1 . And column B will have 40 rows of each word document with corresponding string #2 .
Assume all word docx have the same format and only the strings value changes.
Any help will be greatly appreciated.
Thanks!
word document to extract strings from : https://omar23j.imgur.com/all/?third_party=1
Last edited: