S
Sjaakve
Hi,
Imagine, a document generated by another program in rtf format. This
document contains calculations of structural components, not that this
is important. The output needs to be copied to another document. Now a
problem surfaces. Apparently, when generated, a layout style (heading
1 or heading 2 / with or without underline) is added to random lines
of text. This implies that some lines of this calculation appear in
the automatic 'table of contents'.
In the past i would just select the line that appeared in the
'document map' and change the style to 'no spacing' followed by a re-
application of the correct layout.
Now, i was wondering if a macro could recognize the layout of the
line, remove the heading and restore the original layout. And repeat
this for all lines in the document.
Below an example:
line heading
Text Layout
1 yes
Material Courier
New, Bolt, Bottom border, point 8
2 no beams steel
S235 Courier New, point 8
3 yes columns steel
S235 Courier New, point 8
This should be:
line heading
Text Layout
1 no
Material Courier
New, Bolt, Bottom border, point 8
2 no beams steel
S235 Courier New, point 8
3 no columns steel
S235 Courier New, point 8
I've been thinking how to set up a macro, but my novice level didn't
suffice.
Can anybody be of any help.
Thanx,
Sjaak
Imagine, a document generated by another program in rtf format. This
document contains calculations of structural components, not that this
is important. The output needs to be copied to another document. Now a
problem surfaces. Apparently, when generated, a layout style (heading
1 or heading 2 / with or without underline) is added to random lines
of text. This implies that some lines of this calculation appear in
the automatic 'table of contents'.
In the past i would just select the line that appeared in the
'document map' and change the style to 'no spacing' followed by a re-
application of the correct layout.
Now, i was wondering if a macro could recognize the layout of the
line, remove the heading and restore the original layout. And repeat
this for all lines in the document.
Below an example:
line heading
Text Layout
1 yes
Material Courier
New, Bolt, Bottom border, point 8
2 no beams steel
S235 Courier New, point 8
3 yes columns steel
S235 Courier New, point 8
This should be:
line heading
Text Layout
1 no
Material Courier
New, Bolt, Bottom border, point 8
2 no beams steel
S235 Courier New, point 8
3 no columns steel
S235 Courier New, point 8
I've been thinking how to set up a macro, but my novice level didn't
suffice.
Can anybody be of any help.
Thanx,
Sjaak