V
VespersOf1610
Hi folks,
I'm trying to figure out the VBA and Word object model equivalents of
the following user actions in Word 2003. Word, very usefully, allows a
user to select an entire outline tree with just one click, or
alternatively with three. I'd like to perform this behavior
programmatically, but can't find the methods or properties that
accomplish the tasks.
The Word macro recorder is no help. It records nothing when I perform
these actions.
To reproduce the situation, create any simple outline of several nested
headings (using Word's built-in heading styles) and switch to Outline
View. Expand the outline so that all the headings are visible.
1. Triple click on any parent heading. Word will select that heading
and all its descendants, no matter how deeply nested.
2. Click the "plus" symbol to the left of any parent heading. Word will
(as with the first example) select that heading and all its
descendants.
I have tried all manner of combinations using Selection.Expand and
Selection.Extend to duplicate this behavior programmatically, but with
no luck. Any ideas?
Thanks,
Tom Davey
I'm trying to figure out the VBA and Word object model equivalents of
the following user actions in Word 2003. Word, very usefully, allows a
user to select an entire outline tree with just one click, or
alternatively with three. I'd like to perform this behavior
programmatically, but can't find the methods or properties that
accomplish the tasks.
The Word macro recorder is no help. It records nothing when I perform
these actions.
To reproduce the situation, create any simple outline of several nested
headings (using Word's built-in heading styles) and switch to Outline
View. Expand the outline so that all the headings are visible.
1. Triple click on any parent heading. Word will select that heading
and all its descendants, no matter how deeply nested.
2. Click the "plus" symbol to the left of any parent heading. Word will
(as with the first example) select that heading and all its
descendants.
I have tried all manner of combinations using Selection.Expand and
Selection.Extend to duplicate this behavior programmatically, but with
no luck. Any ideas?
Thanks,
Tom Davey