To record your macro:
Go to Tools > Macro > Record New Macro.
Select (Assign to) Keyboard
Now press the combination of keys you wish to use to recall this recorded macro. I used [Ctrl] and [Shift] and X when I tried this.
Once you have pressed the key combination, select Assign with the mouse, and you are ready to record your macro. I used the sequence listed above.
Once complete, use the mouse to select the Stop button. Using the keys for commands to be recorded and the mouse to control the recording process prevents ambiguities.
Your completed macro is actually a Visual Basic application which looks like this:
Sub Macro1()
'
' Macro1 Macro
' Macro recorded 22/10/2008 by UCLan User
'
Selection.Find.ClearFormatting
With Selection.Find
.Text = "</html>"
.Replacement.Text = " "
.Forward = True
.Wrap = wdFindContinue
.Format = False
.MatchCase = False
.MatchWholeWord = False
.MatchWildcards = False
.MatchSoundsLike = False
.MatchAllWordForms = False
End With
Selection.Find.Execute
Selection.EndKey Unit:=wdLine
Selection.HomeKey Unit:=wdStory, Extend:=wdExtend
Selection.Cut
Selection.Delete Unit:=wdCharacter, Count:=1
Selection.Delete Unit:=wdCharacter, Count:=1
End Sub
Having entered the command once, and pasted the cut page into notepad to be saved as a web page, you should be at the right place in your Word document to enter your key sequence to run the macro and repeat the process with a single keystroke.