I'm trying to write a macro that will select the next REF field in a document so I can apply a specific style. A recorded macro gave me this command to go to the next REF field:
That puts the cursor just before the field. Now I just need to select the field. I'm sure it's simple but I can't figure out how to do that.Selection.GoTo What:=wdGoToField, Which:=wdGoToNext, Count:=1, Name:="REF"