here is the macro. the problem is the "last selected text".
naturally, if you select the text and click on mark entry, it will always open with the selected text. In my case, when I select the text and run the macro, it always open with the text I use to create the macro which I don't want. The mark entry dialog
does not open during the macro execution. All that I want, the "last selected text" to always be the current selected text. That will fix it.
===================
Sub Macro4()
'
' Macro4 Macro
'
'
ActiveWindow.ActivePane.View.ShowAll = True
ActiveDocument.Indexes.MarkEntry Range:=Selection.Range, Entry:= _
"last selected text", EntryAutoText:="last selected text", CrossReference:="", _
CrossReferenceAutoText:="", BookmarkName:="", Bold:=False, Italic:=False
Selection.MoveLeft Unit:=wdCharacter, Count:=3
Selection.TypeText Text:=" "
Selection.Font.Bold = wdToggle
Selection.TypeText Text:="PL"
Selection.Font.Bold = wdToggle
Selection.TypeText Text:=" "
Selection.Fields.Add Range:=Selection.Range, Type:=wdFieldEmpty, Text:= _
"STYLEREF ""Default Paragraph Font"" \n ", PreserveFormatting:=True
End Sub