I'm trying to insert the Registrations symbol into a Word doc through VB.
Everything works except the symbol does not get inserted. Here's the code:
AppWd.ActiveDocument.Variables.Item("varname").Value = "text before symbol"
' AppWd.Selection.Font.Superscript = True
' AppWd.Selection.InsertSymbol Font:="Symbol", CharacterNumber:=-3870, Unicode:=True
' AppWd.Selection.Font.Superscript = False
AppWd.ActiveDocument.Application.Selection.Font.Superscript = True
AppWd.ActiveDocument.Application.Selection.InsertSymbol Font:="Symbol", CharacterNumber:=-3870, Unicode:=True
AppWd.ActiveDocument.Application.Selection.Font.Superscript = False
AppWd.ActiveDocument.Variables.Item("varname").Value = AppWd.ActiveDocument.Variables.Item("varname").Value & ", the rest of my text"
The code in green is commented out to show that I had tried another way.
As you can see after my attempt to insert the symbol I am concatenating the original text with the rest of it's value.
Everything shows correctly EXCEPT the inserted symbol. Please help
thanks
Everything works except the symbol does not get inserted. Here's the code:
AppWd.ActiveDocument.Variables.Item("varname").Value = "text before symbol"
' AppWd.Selection.Font.Superscript = True
' AppWd.Selection.InsertSymbol Font:="Symbol", CharacterNumber:=-3870, Unicode:=True
' AppWd.Selection.Font.Superscript = False
AppWd.ActiveDocument.Application.Selection.Font.Superscript = True
AppWd.ActiveDocument.Application.Selection.InsertSymbol Font:="Symbol", CharacterNumber:=-3870, Unicode:=True
AppWd.ActiveDocument.Application.Selection.Font.Superscript = False
AppWd.ActiveDocument.Variables.Item("varname").Value = AppWd.ActiveDocument.Variables.Item("varname").Value & ", the rest of my text"
The code in green is commented out to show that I had tried another way.
As you can see after my attempt to insert the symbol I am concatenating the original text with the rest of it's value.
Everything shows correctly EXCEPT the inserted symbol. Please help
thanks