Excel VBA - write html table of contents

I followed the code on https://msdn.microsoft.com/en-us/vba/excel-vba/articles/create-an-html-file-with-a-table-of-contents-based-on-cell-data?f=255&MSPPError=-2147217396 and created a html file from cells in an excel spreadsheet.

I want to create a table of contents at the beginning of the html that links to the different sections. The sections would correspond to the headers (first level of hierarchy pulled from the first column of the table).