S
Samurai
I have Document Template that contains a Table of
Contents. I have a couple of Macros that insert Tables of
Tables and Tables of Figures. The Macros look for 2
bookmarks. One bookmark is stored at the end of the Table
of Contents field, so that the Table of Tables always
ends up in the right place and can't be deleted by
mistake. The problem is the 2nd bookmark keeps getting
deleted if I delete the Table of Figures and the Table of
Tables.
Also, if I were to delete the Table of Contents, then the
Table of Table bookmark would disappear.
What I need to do is be able to insert the Table of
Contents in a certain place, if it gets deleted and then
insert the other 2 tables after it. For example, if the
Table of Tables is there, then the Table of Figures
automatically is inserted below the TOT, however if there
is no TOT, then the TOF goes under the TOC.
At the moment everything works unless the bookmarks get
deleted.
The easy solution is don't delete the bookmarks, but life
isn't easy
Appreciate any suggestions
Contents. I have a couple of Macros that insert Tables of
Tables and Tables of Figures. The Macros look for 2
bookmarks. One bookmark is stored at the end of the Table
of Contents field, so that the Table of Tables always
ends up in the right place and can't be deleted by
mistake. The problem is the 2nd bookmark keeps getting
deleted if I delete the Table of Figures and the Table of
Tables.
Also, if I were to delete the Table of Contents, then the
Table of Table bookmark would disappear.
What I need to do is be able to insert the Table of
Contents in a certain place, if it gets deleted and then
insert the other 2 tables after it. For example, if the
Table of Tables is there, then the Table of Figures
automatically is inserted below the TOT, however if there
is no TOT, then the TOF goes under the TOC.
At the moment everything works unless the bookmarks get
deleted.
The easy solution is don't delete the bookmarks, but life
isn't easy
Appreciate any suggestions