Unlink TOC

I am trying to select a TOC and unlink it. I thought the following code should unlink it but it does not.

tell application "Microsoft Word" to tell selection
	tell application "System Events" to key code 101 using {command down, shift down}
end tell

And I have no idea how I would select the TOC even if the above code worked.

Probably irrelevant but this is what I am trying to do.
Add to a manual which I would like the TOC in alphabetical order without changing the location on each addition, so all I have to do to add to a printed version is print the last page(s),
So my sequence is

1 Add a new entry
2 Replace existing TOC
3 Unlink TOC
4 Sort the resulting list alphabetically.

Any suggestion very much appreciated.


I am not really sure what you’re trying to do but Word has applescript commands for managing ‘table of contents’ and unlinking fields and other similar stuff. You may find this is more effective than a UI scripting approach.