S
src
Hi there,
I'm trying to format an entire text box in one shot.
Manually,
1) I select the text box
2) from toolbar choose Font, Size, Bold etc.
and it's applied to all the text in the whole box immediately.
Recording this action gives:
Sub formatTextBox3()
Selection.Font.Name = "Arial"
Selection.Font.Size = 12
Selection.Font.Bold = wdToggle
End Sub
But, changing those values then selecting the text box and running the
macro does nothing.
I changed the code to automatically select the text box:
Sub formatTextBox3()
ActiveDocument.Shapes(1).Select
Selection.Font.Name = "Arial"
Selection.Font.Size = 12
Selection.Font.Bold = wdToggle
End Sub
But to no avail. Can anyone help?
Thanks!
I'm trying to format an entire text box in one shot.
Manually,
1) I select the text box
2) from toolbar choose Font, Size, Bold etc.
and it's applied to all the text in the whole box immediately.
Recording this action gives:
Sub formatTextBox3()
Selection.Font.Name = "Arial"
Selection.Font.Size = 12
Selection.Font.Bold = wdToggle
End Sub
But, changing those values then selecting the text box and running the
macro does nothing.
I changed the code to automatically select the text box:
Sub formatTextBox3()
ActiveDocument.Shapes(1).Select
Selection.Font.Name = "Arial"
Selection.Font.Size = 12
Selection.Font.Bold = wdToggle
End Sub
But to no avail. Can anyone help?
Thanks!