J
Jim
Hi,
I'm using Word 2007. I have a macro that will remove the frame (border)
around Textboxes in a document, but it doesn't work if the TextBox is in a
Drawing Canvas. Can anyone help provide a solution for removing frames
around TextBoxes in a Drawing Canvas? Here is the code that work for Text
Boxes not in a Drawing Canvas:
Sub Remove_Frames_From_Text_Boxes()
'
' Remove_Frames_From_Text_Boxes Macro
'
'
Dim shp As Shape
For Each shp In ActiveDocument.Shapes
If shp.Type = msoTextBox Then
shp.Line.Visible = msoFalse
End If
Next shp
' Finished; go back to the start of the document and quit.
Selection.HomeKey Unit:=wdStory
End Sub
I'm using Word 2007. I have a macro that will remove the frame (border)
around Textboxes in a document, but it doesn't work if the TextBox is in a
Drawing Canvas. Can anyone help provide a solution for removing frames
around TextBoxes in a Drawing Canvas? Here is the code that work for Text
Boxes not in a Drawing Canvas:
Sub Remove_Frames_From_Text_Boxes()
'
' Remove_Frames_From_Text_Boxes Macro
'
'
Dim shp As Shape
For Each shp In ActiveDocument.Shapes
If shp.Type = msoTextBox Then
shp.Line.Visible = msoFalse
End If
Next shp
' Finished; go back to the start of the document and quit.
Selection.HomeKey Unit:=wdStory
End Sub