Home |
Search |
Today's Posts |
#1
![]() |
|||
|
|||
![]()
(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. |
#2
![]()
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
![]()
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. -- Jedumi |
#3
![]() |
|||
|
|||
![]()
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 Quote:
|
#4
![]()
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
![]()
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 he http://word.mvps.org/faqs/macrosvba/...m#_Toc82745252 -- Kind regards Lisa [MS MVP Word] |
#5
![]()
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
![]()
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. -- Jedumi -- Jedumi |
#6
![]() |
|||
|
|||
![]()
@ 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. Quote:
|
#7
![]()
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
![]()
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_ 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 ... 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. -- Jedumi- -- Jedumi -- Jedumi |
#8
![]() |
|||
|
|||
![]()
[quote='Stefan Blom[_3_];492048'] 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? /QUOTE] I've been busy with a project, will reply ASAP. |
#9
![]() |
|||
|
|||
![]()
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 a 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! |
#10
![]()
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
![]()
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 ... 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 a 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 |
#11
![]()
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
![]()
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/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 ... 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 a 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 |
Thread Tools | |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How do I restore the "Customize ... " option to View Toolbars me | Microsoft Word Help | |||
Why the "text box" does not show during "normal" page view? | Page Layout | |||
Font for Outline View with "Show Formatting" disabled | Microsoft Word Help | |||
Can I change the default view from "print layout" to "draft?" | Microsoft Word Help | |||
MS Word 2003 -"Layout View" -can I scroll 1 page at a time? (show pgs 1/2 - pgs 2/3 - pgs 3/4, etc..) | Page Layout |