D
Dan
Hi,
I have a macro set up to insert text using an input box in a particular style but the style is applied to the text before and after the inputted text, how can i Stop this?
Here is my code
Dim myKeyword As String
myKeyword = InputBox("Enter your keyword.", " Insert Keyword", "Insert your key word here")
Selection.TypeText (myKeyword)
Selection.Style = "Key Words"
ActiveDocument.Indexes.MarkEntry Range:=Selection.Range, Entry:=myKeyword, EntryAutoText:=myKeyword
End Sub
Thanks
Dan
I have a macro set up to insert text using an input box in a particular style but the style is applied to the text before and after the inputted text, how can i Stop this?
Here is my code
Dim myKeyword As String
myKeyword = InputBox("Enter your keyword.", " Insert Keyword", "Insert your key word here")
Selection.TypeText (myKeyword)
Selection.Style = "Key Words"
ActiveDocument.Indexes.MarkEntry Range:=Selection.Range, Entry:=myKeyword, EntryAutoText:=myKeyword
End Sub
Thanks
Dan