N
Nick Marinelli
I've created a text box using VBA with the following code:
Set myDocument = ActiveDocument
Set aRange = ActiveDocument.Bookmarks("BPP").Range
With myDocument.Shapes.AddShape(msoShapeRectangle, _
0, 0, 470, 75, aRange).TextFrame
.TextRange.Font.Name = "Arial"
.TextRange.Font.Bold = wdToggle
.TextRange.Text = " (a) "
.TextRange.Font.Bold = wdToggle
.TextRange.InsertAfter ("Here is some more text that I have placed into
the frame.")
End With
This draws the text box, places it where I want it, and puts text into it.
However, I want to eliminate the border it creates. Is the border on the
TextFrame or the TextBox? How do I remove the border?
Set myDocument = ActiveDocument
Set aRange = ActiveDocument.Bookmarks("BPP").Range
With myDocument.Shapes.AddShape(msoShapeRectangle, _
0, 0, 470, 75, aRange).TextFrame
.TextRange.Font.Name = "Arial"
.TextRange.Font.Bold = wdToggle
.TextRange.Text = " (a) "
.TextRange.Font.Bold = wdToggle
.TextRange.InsertAfter ("Here is some more text that I have placed into
the frame.")
End With
This draws the text box, places it where I want it, and puts text into it.
However, I want to eliminate the border it creates. Is the border on the
TextFrame or the TextBox? How do I remove the border?