D
DarcoB
Hi everyone,
I NEED HELP WITH FRAMES!
Working on a 200 pages document with 5-10 frames on each page(marginalia
beside text). Someone was "smart" enough to manually move every frame out of
its regular position. Now it would take me forever to position every frame
back to its original position. So I tried to write a macro to do the job.
Beginner as I am, it looked like this:
Sub frame_position()
Dim frm As Frame
For Each frm In ActiveDocument.Frames
frm.Select
frm.HorizontalPosition = wdFrameOutside
frm.RelativeHorizontalPosition = wdRelativeHorizontalPositionPage
frm.HorizontalDistanceFromText = CentimetersToPoints(0.7)
Next frm
End Sub
It worked somehow. But. It comes to a first table, where it stops, and says:
This command is not available!
Any solutions?
Thanks to all good people.
I NEED HELP WITH FRAMES!
Working on a 200 pages document with 5-10 frames on each page(marginalia
beside text). Someone was "smart" enough to manually move every frame out of
its regular position. Now it would take me forever to position every frame
back to its original position. So I tried to write a macro to do the job.
Beginner as I am, it looked like this:
Sub frame_position()
Dim frm As Frame
For Each frm In ActiveDocument.Frames
frm.Select
frm.HorizontalPosition = wdFrameOutside
frm.RelativeHorizontalPosition = wdRelativeHorizontalPositionPage
frm.HorizontalDistanceFromText = CentimetersToPoints(0.7)
Next frm
End Sub
It worked somehow. But. It comes to a first table, where it stops, and says:
This command is not available!
Any solutions?
Thanks to all good people.