Try the following:
In my example the worksheets are named according to the military alphabet, which is why my sheet 1 is Alpha. You need to substitute the name of the tab where you want the Table of Contents. Also, I assumed the TOC would be the first tab. (This code will populate the cells on whichever sheet from which it is executed.) I also selected cell C3 arbitrarily as the start of the TOC. All these values in the example can be changed to fit your circumstances.
What you need to do is open the Visual Basic Editor (alt+F11), select insert from the menu and module from the choices. On the new white page that is presented to you, paste the code above, save and close the VBE window.
Go to the sheet on which you want to create the TOC, press alt+F8 to list the available macros. Run this one (should be the only one).
HTH
Conor
Bookmarks