1. Place this definition in the preamble of your file:
\DeclareRobustCommand{\SkipTocEntry}[4]{}
2. Just before a command that will write a heading to the TOC file, insert
the instruction to suppress it. A substitute can be inserted after the
regular heading; for example:
\addtocontents{toc}{\SkipTocEntry}
\chapter{Heading that should be replaced}
\addtocontents{toc}{\protect\contentsline{chapter}%
{\protect\tocchapter{Chapter}{\thechapter}{Substitute toc text}}%
{\th