B
Bill Foley
Hey gang,
I have this lingering problem that I can't seem to figure out (actually two
problems):
1. I am trying to create a textbox (frame) in the right hand margin that is
directly across from the first line of its respective paragraph. I would
like for this frame to get selected with the paragraph when I try to do so
(since I am trying to bookmark sections of a document). When I use the
macro (see below) it doesn't get selected unless I put my cursor in the
paragraph marker above this paragraph. I tried placing the frame slightly
below, but still no luck.
2. Part of the real problem is that the (old) macro was done in WordBasic
and I haven't been able to get a similar VBA version. If this seems like
more work than the NewsGroup can handle (due to time), I would be more than
willing to farm this problem out to a fellow MVP. Here is the code:
Public Sub MAIN()
WordBasic.InsertFrame
WordBasic.FormatFrame Wrap:=0, WidthRule:=1, FixedWidth:="1.5" + Chr(34), _
HeightRule:=0, FixedHeight:="", PositionHorz:="5.1" + Chr(34), _
PositionHorzRel:=2, DistFromText:="0.1" + Chr(34), PositionVert:=".2" +
Chr(34), _
PositionVertRel:=2, DistVertFromText:="0" + Chr(34), MoveWithText:=1,
LockAnchor:=1
WordBasic.BorderNone 1
WordBasic.FormatFont Points:="10", Underline:=0, Color:=0, _
StrikeThrough:=0, Superscript:=0, Subscript:=0, Hidden:=1, SmallCaps:=0,
_
AllCaps:=0, Spacing:="0 pt", Position:="0 pt", Kerning:=0,
KerningMin:="", _
Tab:="0", Font:="Times New Roman", Bold:=0, Italic:=1
End Sub
If you want to talk off-line you can reach me directly at "wfoley1 at txu
dot com". Thanks in advance for your assistance!
I have this lingering problem that I can't seem to figure out (actually two
problems):
1. I am trying to create a textbox (frame) in the right hand margin that is
directly across from the first line of its respective paragraph. I would
like for this frame to get selected with the paragraph when I try to do so
(since I am trying to bookmark sections of a document). When I use the
macro (see below) it doesn't get selected unless I put my cursor in the
paragraph marker above this paragraph. I tried placing the frame slightly
below, but still no luck.
2. Part of the real problem is that the (old) macro was done in WordBasic
and I haven't been able to get a similar VBA version. If this seems like
more work than the NewsGroup can handle (due to time), I would be more than
willing to farm this problem out to a fellow MVP. Here is the code:
Public Sub MAIN()
WordBasic.InsertFrame
WordBasic.FormatFrame Wrap:=0, WidthRule:=1, FixedWidth:="1.5" + Chr(34), _
HeightRule:=0, FixedHeight:="", PositionHorz:="5.1" + Chr(34), _
PositionHorzRel:=2, DistFromText:="0.1" + Chr(34), PositionVert:=".2" +
Chr(34), _
PositionVertRel:=2, DistVertFromText:="0" + Chr(34), MoveWithText:=1,
LockAnchor:=1
WordBasic.BorderNone 1
WordBasic.FormatFont Points:="10", Underline:=0, Color:=0, _
StrikeThrough:=0, Superscript:=0, Subscript:=0, Hidden:=1, SmallCaps:=0,
_
AllCaps:=0, Spacing:="0 pt", Position:="0 pt", Kerning:=0,
KerningMin:="", _
Tab:="0", Font:="Times New Roman", Bold:=0, Italic:=1
End Sub
If you want to talk off-line you can reach me directly at "wfoley1 at txu
dot com". Thanks in advance for your assistance!