Your piece of code looks correct based on the Word macro recorder, except the value 65535. The valid range goes from 0 (highlight off) to 18 (classic blue). Yellow is 7.
Here is the VBA code obtained via the Word macro recorder:
Selection.Range.HighlightColorIndex = wdYellow
Object browser for color constant values:
Add comment