SOLUTION INTRODUCTION
Caveat: I'm by no means an expert in MS Word at all (though I am a computer programmer--hence my ability to do this analysis). So I may be wrong here, and am open to anyone correcting me.
Ok, Paul is correct about the issue with deleting Section Break (Continuous). Thank you, Paul, for clueing me in. I don't know if it has been an MS Word problem for decades, but I think there is definitely a "quirk", if not a bug, now. I have done some more
testing, and it turns out it's not an Index issue at all. The problem involves the deletion of a Section Break (Continuous). It just happens that deleting an Index involves deleting a Section Break (Continuous) (in fact, deleting an Index involves the deletion
of two Section Break (Continuous) marks, but the second one is irrelevant to the bug; the deletion of one Section Break (Continuous) is all that is needed for the buggy symptom to appear).
By the way, Option-F9 in MS Word to toggle between the field codes & results does work on my Mac computer after all. I just didn't notice it when I tried it because I was just looking at the top of page 1 when I was pressing the key combination, and that was
just showing the XE field code for my fruit example (that I showed in my video). When I later happened to be looking at the generated Index on the last page and pressed Option-F9, lo and behold I saw it toggle between the generated Index and the code:
{ INDEX \h " " \c "1" \z "1033" }. And I saw the page number toggle between the page number and the code:
{ PAGE }. There you go, the result vs. the code. I apologize.
Also note that my initial discovery of this bug with the regeneration of my Index can be explained because regeneration of an Index makes MS Word behind the scenes first delete the Index, along with its two Section Break (Continuous) marks, before inserting
the new Index. In my video I focused in on deleting the Index (rather than regenerating it) because I realized that the problem was the deletion, not the regeneration. Of course, it turns out that it doesn't have to do with Indexes at all (regeneration or
deletion of them), but rather the Section Break (Continuous) mark.
What I don't understand is why I'm the first person (as far as I can find) to discover this issue with regenerating the Index. Surely others that have large enough documents to require an Index have multiple sections in their document, and need to regenerate
the Index multiple times as they are making it, no? I can't be the first to at the very least have at least one section containing the Table of Contents, with pages i, ii, iii, etc., and the main document with pages 1, 2, 3, etc. Maybe I'm just the first
in the Mac part of the forum, and this issue has already been discussed in the Windows part of the forum, which must have a LOT more users. I haven't searched for this issue in the Windows part of the forum.
SOLUTION SUMMARY
I provide some scenarios below to focus in on the specific problem with deleting a Section Break (Continuous) mark, and how to solve it. It's not really a "good" solution at all, because it involves deleting parts of your document you may not want to delete.
The bottom line is that if you delete a Section Break (Continuous) mark, then you have to delete everything from that Section Break (Continuous) mark until and including the next Section Break (Next Page) mark; if there is no Section Break (Next Page) mark
that comes after the Section Break (Continuous) mark you are deleting, then you have to delete everything from the Section Break (Continuous) mark to the end of the document. If the stuff you are deleting needs to go back in again, then you will have to make
a copy of it first before deleting it, and then paste it back in again afterwards. Unfortunately, my own experimenting with pasting in stuff that includes section breaks did not go well: it messed some of those section breaks up (they did not paste exactly
as the original). The bottom line is that Microsoft Word is buggy when it comes to section breaks, imho.
So the solution to regenerating an Index is to first delete the Index, from the start of the Index (the first Section Break (Continuous) mark that is at the beginning of the Index), to the end of the Index (the second Section Break (Continuous) mark that is
at the end of the Index), AND TO DELETE EVERYTHING AFTER THE INDEX UNTIL THE VERY END OF THE DOCUMENT, which normally may just be an extra carriage return or two, assuming the Index is at the very end of your document.
SOLUTION DETAILS
As you will see, my example below involves vegetables as my text. In all the following scenarios, we are deleting the Section Break (Continuous) that comes after the Kale. The Section Break (Next Page) that we want to watch to see if it changes after the
delete is the Section Break (Next Page) after the Corn. I have also used two letters after each Section Break in my examples to indicate which one it is so you don't get confused (e.g. <Section Break (Next Page) BC> has BC because it comes in between Broccoli
(B) & Cabbage (C); <Section Break (Continuous) KL> has KL because it comes in between Kale (K) & Lettuce (L)).
SCENARIO #1(a): ****If the Section Break (Continuous) you are deleting is the last section break in the document, and if the immediately previous section break is a Section Break (Next Page):
START OF MY DOCUMENT
...
Broccoli
<Section Break (Next Page) BC>
Cabbage
...
Corn
<Section Break (Next Page) CD>
Dill
...
Kale
<Section Break (Continuous) KL>
Lettuce
Peas
END OF MY DOCUMENT
and if you don't delete everything until the very end of the document along with that Section Break (Continuous), then that immediately previous Section Break (Next Page) will be changed to a Section Break (Continuous):
START OF MY DOCUMENT
...
Broccoli
<Section Break (Next Page) BC>
Cabbage
...
Corn
<Section Break (Continuous) CD>
Dill
...
Kale
Peas
END OF MY DOCUMENT
As you can see above, when I deleted the Section Break (Continuous) KL + Lettuce, but left the Peas, it changed the Section Break (Next Page) CD after the Corn to Continuous.
SCENARIO #1(b): But if I also delete the Peas, then it doesn't:
START OF MY DOCUMENT
...
Broccoli
<Section Break (Next Page) BC>
Cabbage
...
Corn
<Section Break (Next Page) CD>
Dill
...
Kale
END OF MY DOCUMENT
As you can see, if I delete the Section Break (Continuous) KL + Lettuce + Peas, it left the Section Break (Next Page) CD after the Corn alone.
Note that if the section break immediately previous to the Section Break (Continuous) you are deleting is a Continuous one, rather than a Next Page one, or if there is no previous section at all, then everything will be fine when you delete the Section Break
(Continuous) you are deleting, no matter how far down you go in the deletion. So if the CD (Corn-Dill) section break was Section Break (Continuous) CD instead of Section Break (Next Page) CD, then it will stay a Section Break (Continuous) after the deletion
and everything will be fine.
SCENARIO #2: If the Section Break (Continuous) you are deleting is NOT the last section break in the document, and if the immediately previous section break is a Section Break (Next Page), and there is no Section Break (Next Page) that comes
after the Section Break (Continuous) you are deleting (such as in the following example, where all the section breaks after the one we are deleting are all Continuous):
START OF MY DOCUMENT
...
Broccoli
<Section Break (Next Page) BC>
Cabbage
...
Corn
<Section Break (Next Page) CD>
Dill
...
Kale
<Section Break (Continuous) KL>
Lettuce
Peas
<Section Break (Continuous) PR>
Radish
<Section Break (Continuous) RS>
Spinach
END OF MY DOCUMENT
and if you don't delete everything until the very end of the document along with that Section Break (Continuous), then that immediately previous Section Break (Next Page) will be changed to a Section Break (Continuous):
START OF MY DOCUMENT
...
Broccoli
<Section Break (Next Page) BC>
Cabbage
...
Corn
<Section Break (Continuous) CD>
Dill
...
Kale
<Section Break (Continuous) RS>
Spinach
END OF MY DOCUMENT
As you can see, if I left that last section with Spinach, instead of deleting right to the very end of the document, then the Section Break (Next Page) CD after Corn changed to Continuous.
SCENARIO #3a: If the Section Break (Continuous) you are deleting is NOT the last section break in the document, and if the immediately previous section break is a Section Break (Next Page), and there is another Section Break (Next Page) that
comes after the Section Break (Continuous) you are deleting:
START OF MY DOCUMENT
...
Broccoli
<Section Break (Next Page) BC>
Cabbage
...
Corn
<Section Break (Next Page) CD>
Dill
...
Kale
<Section Break (Continuous) KL>
Lettuce
Peas
<Section Break (Continuous) PR>
Radish
<Section Break (Next Page) RS>
Spinach
<Section Break (Continuous) ST>
Turnip
END OF MY DOCUMENT
then you have to delete everything up until that next Section Break (Next Page). If you don't, then that immediately previous Section Break (Next Page) will be changed to a Section Break (Continuous):
START OF MY DOCUMENT
...
Broccoli
<Section Break (Next Page) BC>
Cabbage
...
Corn
<Section Break (Continuous) CD>
Dill
...
Kale
Radish
<Section Break (Next Page) RS>
Spinach
<Section Break (Continuous) ST>
Turnip
END OF MY DOCUMENT
As you can see, I failed to delete Radish and the Section Break (Next Page) RS that comes after it, and my Section Break (Next Page) CD after the Corn changed to Continuous.
SCENARIO #3b: If I do delete everything from my Section Break (Continuous) KL after the Kale up until and including the Section Break (Next Page) RS after the Radish, then my Section Break (Next Page) CD after the Corn is left alone:
START OF MY DOCUMENT
...
Broccoli
<Section Break (Next Page) BC>
Cabbage
...
Corn
<Section Break (Next Page) CD>
Dill
...
Kale
Spinach
<Section Break (Continuous) ST>
Turnip
END OF MY DOCUMENT
As you can see, I don't have to delete everything from my Section Break (Continuous) KL after the Kale to the end of the document: I just have to delete everything from my Section Break (Continuous) KL after the Kale up until and including the next Section
Break (Next Page) (i.e. RS). I still left the last Section Break (Continuous) ST + Turnip there. My Section Break (Next Page) CD after the Corn was left alone.
I hope this all makes sense, and I hope I'm correct in my analysis. Let me know if I'm not.
Thanks,
Gary