I've run into the save situation as many many others here: there is generated MS WORD
document having frames. My DOC document was prepared by Oracle Reports 10g software. The problem is the same: multiple frames do not allow me to edit generated document in
MS Word. I've tried the macros published here as a solutions of similar problems, but they
messed up my DOC file: all alignments were destroyed...
Having long time experience in Oracle, I have very limited knowledge of VB.
Please, help me to improve the following macro so that it produces a file with
frames removed and all alignments of text and paragraphs to be the same as in the original
Dim frm As Frame
Dim rng As Range
Dim brd As Border
Dim para As Paragraph
For Each frm In ActiveDocument.Frames
Set rng = frm.Range
'Delete the borders left behind
For Each para In rng.Paragraphs
For Each brd In para.Borders
brd.LineStyle = wdLineStyleNone
To make your work a little bit easier, I've attached my DOC document.
All data mentioned in it are synthetic (for testing purposes).
Thanks a lot in advance!