I have a table of contents that uses the hyperlinks switch "\h" so all entries in the TOC are hyperlinks. I'm trying to use VBA to combine some TOC entries into a single paragraph. VBA is not recognizing the tab character in the TOC entries when the hyperlinks switch is used. If I remove the hyperlinks switch, vba is able to recognize a tab character in the TOC. Below is the VBA code I'm trying to use to combine some entries into a single paragraph in the TOC. Note - I've removed portions of the code that aren't relevant to my issue. I added a comment to the line that isn't working as I expected. Is this a bug in Word? Is there another method I can use to recognize the tab character while using the hyperlinks switch in the TOC?

Set rangeTOC = ActiveDocument.TablesOfContents(1).Range
For lcount = (rangeTOC.Paragraphs.count - 1) To 1 Step -1
Set myPara = rangeTOC.Paragraphs(lcount)
Set myRange = myPara.Range.Characters.Last
With myRange
.MoveStartUntil Cset:=vbTab, count:=wdBackward 'this doesn't recoginize the tab character when the hyperlinks switch is used and extends the range to the beginning of the paragraph
.MoveStart unit:=wdCharacter, count:=-1
.Delete
End With
Next lcount

Tab picture.jpg