Word 2003: Customize default view Styles&Formatting "Show"?

J

Jedumi

(My very first Post,,,)

Styles and Formatting pane:

Word's default behaviour is not too clear, but when opening a ne
document - and certainly after restarting Word - "Custom" is the defaul
in "Show".

However, it seems (but I haven't tested exhaustively) that when openin
a new document, Word retains what's in "Show" from the last time i
saved a document - though only for as long as the same Word session i
active. As soon as you restart Word the default in "Show" reverts t
"Custom".

Anyone know a way to make a forced change to the default? With VBA i
necessary? In fact, I'd like to know how to specify the defaul
behaviour using VBA - for another particular need
 
S

Stefan Blom

To learn more about the Styles and Formatting pane, see
http://www.shaunakelly.com/word/styles/sfpane.html.

-- 
Stefan Blom
Microsoft Word MVP




---------------------------------------------
"Jedumi" wrote in message

(My very first Post,,,)

Styles and Formatting pane:

Word's default behaviour is not too clear, but when opening a new
document - and certainly after restarting Word - "Custom" is the default
in "Show".

However, it seems (but I haven't tested exhaustively) that when opening
a new document, Word retains what's in "Show" from the last time it
saved a document - though only for as long as the same Word session is
active. As soon as you restart Word the default in "Show" reverts to
"Custom".

Anyone know a way to make a forced change to the default? With VBA if
necessary? In fact, I'd like to know how to specify the default
behaviour using VBA - for another particular need.
 
J

Jedumi

Thankyou Stefan,

However, I had already read that before posting and it didn't tell m
anything I didn't already know. Indeed, I researched the subject befor
posting (as anyone should).

ATB,

Jedumi

'Stefan Blom[_3_ said:
;492027']To learn more about the Styles and Formatting pane, see
http://www.shaunakelly.com/word/styles/sfpane.html.

-- 
Stefan Blom
Microsoft Word MVP
---------------------------------------------
"Jedumi" wrote in message
Styles and Formatting pane:

Word's default behaviour is not too clear, but when opening a new
document - and certainly after restarting Word - "Custom" is th
default
in "Show".

However, it seems (but I haven't tested exhaustively) that when opening
a new document, Word retains what's in "Show" from the last time it
saved a document - though only for as long as the same Word session is
active. As soon as you restart Word the default in "Show" reverts to
"Custom".

Anyone know a way to make a forced change to the default? With VBA if
necessary? In fact, I'd like to know how to specify the default
behaviour using VBA - for another particular need.
 
L

Lisa Wilke-Thissen

Hi,

"Jedumi" wrote
Styles and Formatting pane:
Anyone know a way to make a forced change to the default?
you can choose "Show | Custom", and then decide whether you want to see
category "All styles" for example. Then you have to enable "Save
settings in template". When you exit Word you will be asked, whether
changes in Normal.dot should be saved.
If you are using different templates repeat the steps for those
templates.

Regarding VBA and Styles pane, you will find some code here:
http://word.mvps.org/faqs/macrosvba/taskpanesreferencecontentbody.htm#_Toc82745252
 
S

Stefan Blom

The article does explain how to control which styles display in the pane
(which is what you asked). If you want to do this in programming, see if the
link Lisa posted will be helpful.

-- 
Stefan Blom
Microsoft Word MVP




---------------------------------------------
"Jedumi" wrote in message

Thankyou Stefan,

However, I had already read that before posting and it didn't tell me
anything I didn't already know. Indeed, I researched the subject before
posting (as anyone should).

ATB,

Jedumi

'Stefan Blom[_3_ said:
;492027']To learn more about the Styles and Formatting pane, see
http://www.shaunakelly.com/word/styles/sfpane.html.

-- 
Stefan Blom
Microsoft Word MVP
---------------------------------------------
"Jedumi" wrote in message
Styles and Formatting pane:

Word's default behaviour is not too clear, but when opening a new
document - and certainly after restarting Word - "Custom" is the
default
in "Show".

However, it seems (but I haven't tested exhaustively) that when opening
a new document, Word retains what's in "Show" from the last time it
saved a document - though only for as long as the same Word session is
active. As soon as you restart Word the default in "Show" reverts to
"Custom".

Anyone know a way to make a forced change to the default? With VBA if
necessary? In fact, I'd like to know how to specify the default
behaviour using VBA - for another particular need.
 
J

Jedumi

@ Lisa
Thanks, a quick look suggests that it provides an answer; but will stud
later.

@ Stefan
I don't want to get into an argument, Stefan, because you were kin
enough to reply; but I had not asked (as you thought) how to displa
different styles - that's easy. I asked (clearly, I thought) how to se
("make a forced change" to) what is displayed by default. If I hadn'
already seen that article, I would have been even more grateful for you
reply. Thank you.
'Stefan Blom[_3_ said:
;492036']The article does explain how to control which styles display i
the pane (which is what you asked). If you want to do this i
programming, see if the link Lisa posted will be helpful.

-- 
Stefan Blom
Microsoft Word MVP




---------------------------------------------
"Jedumi" wrote in message

Thankyou Stefan,

However, I had already read that before posting and it didn't tell me
anything I didn't already know. Indeed, I researched the subjec
before
posting (as anyone should).

ATB,

Jedumi

'Stefan Blom[_3_ Wrote:-
;492027']To learn more about the Styles and Formatting pane, see
http://www.shaunakelly.com/word/styles/sfpane.html.

-- 
Stefan Blom
Microsoft Word MVP
---------------------------------------------
"Jedumi" wrote in message
Styles and Formatting pane:

Word's default behaviour is not too clear, but when opening a new
document - and certainly after restarting Word - "Custom" is the
default
in "Show".

However, it seems (but I haven't tested exhaustively) that whe
opening
a new document, Word retains what's in "Show" from the last time it
saved a document - though only for as long as the same Word session is
active. As soon as you restart Word the default in "Show" reverts to
"Custom".

Anyone know a way to make a forced change to the default? With VBA if
necessary? In fact, I'd like to know how to specify the default
behaviour using VBA - for another particular need.
 
S

Stefan Blom

I asked (clearly, I thought) how to set ("make a forced change" to) what
is displayed by default.

Are you saying that selecting "Save settings in template" (briefly mentioned
in the article) doesn't work for you?

-- 
Stefan Blom
Microsoft Word MVP




---------------------------------------------
"Jedumi" wrote in message

@ Lisa
Thanks, a quick look suggests that it provides an answer; but will study
later.

@ Stefan
I don't want to get into an argument, Stefan, because you were kind
enough to reply; but I had not asked (as you thought) how to display
different styles - that's easy. I asked (clearly, I thought) how to set
("make a forced change" to) what is displayed by default. If I hadn't
already seen that article, I would have been even more grateful for your
reply. Thank you.
'Stefan Blom[_3_ said:
;492036']The article does explain how to control which styles display in
the pane (which is what you asked). If you want to do this in
programming, see if the link Lisa posted will be helpful.

-- 
Stefan Blom
Microsoft Word MVP




---------------------------------------------
"Jedumi" wrote in message

Thankyou Stefan,

However, I had already read that before posting and it didn't tell me
anything I didn't already know. Indeed, I researched the subject
before
posting (as anyone should).

ATB,

Jedumi

'Stefan Blom[_3_ Wrote:-
;492027']To learn more about the Styles and Formatting pane, see
http://www.shaunakelly.com/word/styles/sfpane.html.

-- 
Stefan Blom
Microsoft Word MVP
---------------------------------------------
"Jedumi" wrote in message
Styles and Formatting pane:

Word's default behaviour is not too clear, but when opening a new
document - and certainly after restarting Word - "Custom" is the
default
in "Show".

However, it seems (but I haven't tested exhaustively) that when
opening
a new document, Word retains what's in "Show" from the last time it
saved a document - though only for as long as the same Word session is
active. As soon as you restart Word the default in "Show" reverts to
"Custom".

Anyone know a way to make a forced change to the default? With VBA if
necessary? In fact, I'd like to know how to specify the default
behaviour using VBA - for another particular need.
 
J

Jedumi

For clarity:

We can 'Show' only specified styles on all future documents on our ow
machines - simply by following the standard steps to save in Normal.do
(as Stefan mentions).

What we're trying to do is create code that will amend the Normal.dot o
the machine of someone else (who is not computer savvy) to - by defaul
- show specific styles only in their new documents. (We could send the
a self-extracting utility to place their Normal.dot with a custo
Normal.dot in the required directory, but we don't want to do this i
case it wipes away anything they may have themselves saved i
Normal.dot.)

("not computer savvy" meaning: they can't even follow instructions t
select to show specified styles only; but we also mean that we'd like t
automate it for their convenience - especially as we're talking abou
selecting at least a dozen specific styles and making sure that onl
these are visible.)

Recording the process doesn't provide any useful statements.

In any case, the above will always show 'Custom', whereas we want it t
show 'Available Styles'.


Here's something from another forum:

Thanks for the info, but the solutions only work for the Custom view
Seems there is a VBA bug or even a main Word bug.

See the site:

http://www.tek-tips.com/viewthread.cfm?qid=1212007

Where the bottom line seems to be:

******************

There IS the following:

wdShowFilterStylesAvailable

it is part of the wdShowFilter class. Others are:

wdShowFilterFormattingAvailable
wdShowFilterStylesInUse

So they are there. There must be a way to do something with them.

... I am trying hard to make VBA DO something with it. So far, no luck
I can get a Variant to be[\b] wdShowFilterStylesAvailable. Great.
That's nice. I still have not found a method or a property that wil
accept it.

There is Document.FormattingShowFilter but I can't make it do anythin
at the moment.

As far as I can tell the Document filter properties don't appear to wor
- it wouldn't be the first time
 
S

Stefan Blom

To hide styles you'd need code such as the following:

ActiveDocument.Styles("Heading 1") _
..Visibility = True 'yes, the property should be true

Note that the Visibility property should be set to True when you want to
hide (!) the style.

This is exemplified in an article that deals with table styles (not
supported in Word 2003, if I remember correctly), but the principle is the
same for all styles. See
http://www.shaunakelly.com/word/styles/how-to-hide-table-styles-in-word.html.

To force these settings on each user you would have to open their Normal
template as a document, run the macro, save Normal and close.

-- 
Stefan Blom
Microsoft Word MVP




---------------------------------------------
"Jedumi" wrote in message

For clarity:

We can 'Show' only specified styles on all future documents on our own
machines - simply by following the standard steps to save in Normal.dot
(as Stefan mentions).

What we're trying to do is create code that will amend the Normal.dot on
the machine of someone else (who is not computer savvy) to - by default
- show specific styles only in their new documents. (We could send them
a self-extracting utility to place their Normal.dot with a custom
Normal.dot in the required directory, but we don't want to do this in
case it wipes away anything they may have themselves saved in
Normal.dot.)

("not computer savvy" meaning: they can't even follow instructions to
select to show specified styles only; but we also mean that we'd like to
automate it for their convenience - especially as we're talking about
selecting at least a dozen specific styles and making sure that only
these are visible.)

Recording the process doesn't provide any useful statements.

In any case, the above will always show 'Custom', whereas we want it to
show 'Available Styles'.


Here's something from another forum:

Thanks for the info, but the solutions only work for the Custom view!
Seems there is a VBA bug or even a main Word bug.

See the site:

http://www.tek-tips.com/viewthread.cfm?qid=1212007

Where the bottom line seems to be:

******************

There IS the following:

wdShowFilterStylesAvailable

it is part of the wdShowFilter class. Others are:

wdShowFilterFormattingAvailable
wdShowFilterStylesInUse

So they are there. There must be a way to do something with them.

... I am trying hard to make VBA DO something with it. So far, no luck.
I can get a Variant to be[\b] wdShowFilterStylesAvailable. Great.
That's nice. I still have not found a method or a property that will
accept it.

There is Document.FormattingShowFilter but I can't make it do anything
at the moment.

As far as I can tell the Document filter properties don't appear to work
- it wouldn't be the first time!
 
S

Stefan Blom

Of course, if users choose not to allow macros, there isn't much you can do.

-- 
Stefan Blom
Microsoft Word MVP




---------------------------------------------
"Stefan Blom" wrote in message
To hide styles you'd need code such as the following:

ActiveDocument.Styles("Heading 1") _
..Visibility = True 'yes, the property should be true

Note that the Visibility property should be set to True when you want to
hide (!) the style.

This is exemplified in an article that deals with table styles (not
supported in Word 2003, if I remember correctly), but the principle is the
same for all styles. See
http://www.shaunakelly.com/word/styles/how-to-hide-table-styles-in-word.html.

To force these settings on each user you would have to open their Normal
template as a document, run the macro, save Normal and close.

-- 
Stefan Blom
Microsoft Word MVP




---------------------------------------------
"Jedumi" wrote in message

For clarity:

We can 'Show' only specified styles on all future documents on our own
machines - simply by following the standard steps to save in Normal.dot
(as Stefan mentions).

What we're trying to do is create code that will amend the Normal.dot on
the machine of someone else (who is not computer savvy) to - by default
- show specific styles only in their new documents. (We could send them
a self-extracting utility to place their Normal.dot with a custom
Normal.dot in the required directory, but we don't want to do this in
case it wipes away anything they may have themselves saved in
Normal.dot.)

("not computer savvy" meaning: they can't even follow instructions to
select to show specified styles only; but we also mean that we'd like to
automate it for their convenience - especially as we're talking about
selecting at least a dozen specific styles and making sure that only
these are visible.)

Recording the process doesn't provide any useful statements.

In any case, the above will always show 'Custom', whereas we want it to
show 'Available Styles'.


Here's something from another forum:

Thanks for the info, but the solutions only work for the Custom view!
Seems there is a VBA bug or even a main Word bug.

See the site:

http://www.tek-tips.com/viewthread.cfm?qid=1212007

Where the bottom line seems to be:

******************

There IS the following:

wdShowFilterStylesAvailable

it is part of the wdShowFilter class. Others are:

wdShowFilterFormattingAvailable
wdShowFilterStylesInUse

So they are there. There must be a way to do something with them.

... I am trying hard to make VBA DO something with it. So far, no luck.
I can get a Variant to be[\b] wdShowFilterStylesAvailable. Great.
That's nice. I still have not found a method or a property that will
accept it.

There is Document.FormattingShowFilter but I can't make it do anything
at the moment.

As far as I can tell the Document filter properties don't appear to work
- it wouldn't be the first time!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top