Outline view doesn't "stick"

V

Vivian Carroll

In Word 2000 I created a very detailed To Do List using Outline Numbering.
Each morning I open the document and switch to Outline View, where I hide
the details of all of the tasks except the ones that I will work on that day
(i.e., I "collapse" the outlining of the tasks I don't plan to work on so
that only the top level task appears - with a plus sign in front of it).

The problem is that whenever I close the document and reopen it, Outline
View forgets my settings and expands *all* of the tasks (i.e., all tasks are
showing and have minus signs in front of them). Is there any way to make it
remember what was showing when I saved the document? (I'd be willing to add
a macro to the document if necessary.)

TIA,
Vivian
 
J

Jezebel

Record a macro in which you set the document to display exactly as you want
it. Call the macro AutoOpen and save it in the document itself, not in
normal.dot.
 
V

Vivian Carroll

Thanks Jezebel,

But, is there a way to make an AutoClose macro that remembers the current
settings when the document closes and then have the AutoOpen macro use those
settings? I can't record a macro that will work every time because what I
want to display changes as I finish projects and add new ones.

Vivian
 
J

Jezebel

Yes, but you won't be able to record it. You'll have to write it from
scratch. Pack the settings into a string and save that as a document
variable. Then in the AutoOpen macro read the string, unpack, set.
 
V

Vivian Carroll

Thanks Jezebel, but I don't know what it means to pack settings into a
string. Here is code I use to remember the user's Hidden Text settings in a
variable. Can you provide similar code for my AutoClose that would remember
my Outline settings (I want it to remember that 5.1 is expanded, 6.1 is
collapsed - what is expanded/collapsed will change each time I close the
document.)

'Create the variable that remembers the user's View Hidden Text setting
'so the AutoClose macro can set it back to the user's original setting
ActiveDocument.Variables.Add Name:="HiddenTextSetting", _
Value:=ActiveWindow.View.ShowHiddenText
'Show hidden text
ActiveWindow.View.ShowHiddenText = True

Thank you,
Vivian
 
J

Jezebel

Sorry, I misunderstood your original question. I'm not sure it can be done
at all: there doesn't seem to be any property you can examine to determine
whether a given paragraph or heading is expanded or collapsed.
 
V

Vivian Carroll

OK, thanks for all of your time.

Jezebel said:
Sorry, I misunderstood your original question. I'm not sure it can be done
at all: there doesn't seem to be any property you can examine to determine
whether a given paragraph or heading is expanded or collapsed.




in not where
 
Top