PC Review


Reply
Thread Tools Rating: Thread Rating: 2 votes, 5.00 average.

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

 
 
Stefan Blom
Guest
Posts: n/a
 
      5th Mar 2012
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 news:(E-Mail Removed)...


(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.




--
Jedumi


 
Reply With Quote
 
 
 
 
Stefan Blom
Guest
Posts: n/a
 
      6th Mar 2012
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 news:(E-Mail Removed)...


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 news:(E-Mail Removed)...
>
> 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.
> --
> Jedumi





--
Jedumi


 
Reply With Quote
 
 
 
 
Stefan Blom
Guest
Posts: n/a
 
      7th Mar 2012
> 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 news:(E-Mail Removed)...


@ 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_ Wrote:
> ;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 news:(E-Mail Removed)...
>
>
> 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 news:(E-Mail Removed)...
>
> 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.
> --
> Jedumi-
>
>
>
>
> --
> Jedumi





--
Jedumi


 
Reply With Quote
 
Stefan Blom
Guest
Posts: n/a
 
      24th Mar 2012
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/styl...s-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 news:(E-Mail Removed)...


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 [b]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!




--
Jedumi


 
Reply With Quote
 
Stefan Blom
Guest
Posts: n/a
 
      24th Mar 2012
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 news:jkl79d$icm$(E-Mail Removed)...

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/styl...s-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 news:(E-Mail Removed)...


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 [b]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!




--
Jedumi



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: Word 2003: Customize default view Styles&Formatting "Show"? Lisa Wilke-Thissen Microsoft Word Document Management 0 6th Mar 2012 11:55 AM
Customize form / customize form Macca Microsoft Outlook BCM 0 8th May 2008 02:39 PM
Customize menu with customize picture. =?Utf-8?B?UGF0?= Microsoft Word Document Management 1 19th Jul 2005 02:03 PM
in outlook tasks I customize a current view. Can I save this view. =?Utf-8?B?aG9zcyBib3Nz?= Microsoft Outlook Discussion 1 16th Jan 2005 08:04 AM
Customize default outlook Contacts View to display Images in the view Bhavani S Chowdary Microsoft Outlook VBA Programming 0 30th Jun 2003 06:18 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:37 AM.