A
Alastair MacFarlane
Dear Group
How in Word can I loop through a document and get the dimensions and
position of every object on the page, be it paragraph, rectangle, line, etc.
I can loop through text and paragraphs as below, but I need all objects on a
page.
Dim para As Paragraph
For Each para In ActiveDocument.Paragraphs
****
Next
What I really want is the Left, Top, Height and Width of the object and the
TypeOf object it is.
I have over 50 documents of 5 or more pages looking like forms (30 Boxes and
lines) that I want all the measurements so I can take these measurements and
create the same objects in a VB form. My aim is to create a converter. I
fully appreciate that the same objects do not exist in VB so I will use
CreateControl to create the comparable desired objects.
I realise this is a mammoth project but I would appreciate any pointers from
the group as to where to start.
Please help whilst I still have some hair!
Alastair MacFarlane
How in Word can I loop through a document and get the dimensions and
position of every object on the page, be it paragraph, rectangle, line, etc.
I can loop through text and paragraphs as below, but I need all objects on a
page.
Dim para As Paragraph
For Each para In ActiveDocument.Paragraphs
****
Next
What I really want is the Left, Top, Height and Width of the object and the
TypeOf object it is.
I have over 50 documents of 5 or more pages looking like forms (30 Boxes and
lines) that I want all the measurements so I can take these measurements and
create the same objects in a VB form. My aim is to create a converter. I
fully appreciate that the same objects do not exist in VB so I will use
CreateControl to create the comparable desired objects.
I realise this is a mammoth project but I would appreciate any pointers from
the group as to where to start.
Please help whilst I still have some hair!
Alastair MacFarlane