View Single Post
 
Old 03-04-2024, 07:08 AM
gmaxey gmaxey is offline Windows 10 Office 2019
Expert
 
Join Date: May 2010
Location: Brasstown, NC
Posts: 1,601
gmaxey is just really nicegmaxey is just really nicegmaxey is just really nicegmaxey is just really nicegmaxey is just really nice
Default

As Italophile explains. No.

Why? What difference does it make if it is formatted before or after if the net result is formatted?


You could use:
Code:
Sub Demo()
  InsertStringAsFormattedText "Have a good day ", "MyCharStyle"
End Sub
Sub InsertStringAsFormattedText(strText, strStyle)
'A basic Word Macro coded by Gregory K. Maxey
Dim oRng As Range
  Set oRng = Selection.Range
  oRng.Text = strText
  oRng.Style = strStyle
lbl_Exit:
  Exit Sub
End Sub
__________________
Greg Maxey
Please visit my web site at http://www.gregmaxey.com/
Reply With Quote