I need a macro to be run in MS word which look for the specific word ‘Article’.
Now once the document identifies the above word. It will then extract the entire length ‘Like Article 1485 (2)’
(Let us say article = 7 length, space 1 and then 8 lengths after this. So in total the text to be extracted is 16 length)
The reference word ‘Article999999999’ is always in a box (as shown below) and the box will have a reference right above it.
So the macro should extract both the Reference table and reference word ‘Article999999999’.
The input and the output are shown below:
As a point:
1. There could be repetitions of the same Article across the document, but the macro should still extract the table reference every time.
2. The macro will have to perform the above task, tidying and cleaning it up will be done by myself.