Try this:
Sub ScratchMacoro()
Dim myRng As Range
Set myRng = Selection.Range
With myRng
.Collapse wdCollapseEnd
.Fields.Add Range:=myRng, Type:=wdFieldMacroButton,
PreserveFormatting:=False
.Move Unit:=wdWord, Count:=2
.InsertAfter "NoMacro "
.Move Unit:=wdWord, Count:=1
.Fields.Add Range:=myRng, Type:=wdFieldQuote, PreserveFormatting:=False
.Move Unit:=wdWord, Count:=2
.InsertAfter """Insert Number"" \* CharFormat"
End With
End Sub

Signature
Greg Maxey/Word MVP
See:
http://gregmaxey.mvps.org/word_tips.htm
For some helpful tips using Word.
> I am trying to create a field code that looks like this:
> {Macrobutton NoMacro {Quote "Insert Number" \* CharFormat}}
[quoted text clipped - 25 lines]
>
> End Sub
frogman - 08 Sep 2005 15:35 GMT
Thank you it helped alot here is your code that I modified to work for
me.
Sub TextToFieldClear()
Dim strSelection As String
Dim myRng As Range
Set myRng = Selection.Range
ActiveWindow.View.ShowFieldCodes = True
strSelection = Selection.Text
With myRng
.Delete
.Collapse wdCollapseEnd
.Fields.Add Range:=myRng, Type:=wdFieldMacroButton,
PreserveFormatting:=False
.Move Unit:=wdWord, count:=2
.InsertAfter "NoMacro "
.Move Unit:=wdWord, count:=1
.Fields.Add Range:=myRng, Type:=wdFieldQuote,
PreserveFormatting:=False
.Move Unit:=wdWord, count:=2
.InsertAfter ("""" & strSelection & """ \* CharFormat")
End With
With Selection
.find.ClearFormatting
.find.Forward = False
.find.MatchCase = True
.find.Text = "Q"
.find.Execute
.Font.Color = wdColorRed
.Fields.Update
End With
ActiveWindow.View.ShowFieldCodes = False
End Sub