Hello,
I never got any replies on this question. It's still happening. Can anyone suggest a fix?
Thanks
PS: I have some new data.
If I simply rerun the macro from the line where the tab key is misbehaving, the problem is fixed. I set a breakpoint in the macro and stepped through what it does. If it is not called from a heading line, it just assigns two variables and exits.
Code:
Dim DocLayout 'The document layout (view)
Dim ParOutline 'The paragraph outline level (1-9 + 10 (=Bodytext))
DocLayout = ActiveWindow.View
ParOutline = Selection.Paragraphs(1).OutlineLevel
Why would that change anything?