Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations dencom on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Styles and Formatting 3

Status
Not open for further replies.

PenelopePitstop

Technical User
Jul 15, 2004
14
GB
Does anybody out there know how to default all new templates to read "Available Styles" on all PC's over a Local Area Network!
 
Huh?? Could you elaborate on that? Do you mean all new documents, rather than templates?

I don't think this is possible. Styles - and I am assuming you ARE talking about Word here - are in the template. Templates are created, well except for the ones that come with Word.

When you make a new template is has for existing styles either:

A - the styles that exist in normal.dot OR
B - the styles that exist in the current document (if you saving the current document AS A template). Obviously, the current document will have the styles of the template it was created from.

Word has no ability to look for any other styles. It can certainly GET other styles from documents and/or templates on the local machine, or a network. However, they would need to be identified.

It would possible to write some VBA to go through all documents and templates looking for styles, but this would be a HUGE drag on resources, and I strongly question the usefulness of doing anything like that.

What EXACTLY are you wanting to do? And why?

Gerry
 
Gerry,
Thank you for your post and my apologies as I was not clear. I am referring to the display of styles within a series of newly issued corporate templates.

Within MS Office 2003, Windword.
From the Format Menu, you can select the option 'Styles and Formatting'which will on the right hand side of the screen display the Styles and Formatting task pane.

At the bottom of this screen is a drop down box, reading "Show" which provides a series of options.

On half the PC's in the building, the default is set to 'Available Formatting' on others it is set to 'Available Styles'.

I need to set the default to 'Available Styles' on all PC's. I can't find out how to do this as this affects the display of styles when a selected template is chosen by the user.

If you are able to point me in the direction of setting the default option, I will be most grateful.

Kind Regards
Penelope
 
Hi Penelope,

I'd like to be able to give you a full answer but Word seems to be very obscure in this dark corner and I don't really know what it does. What follows is, at best, a description of what happens on my Word (2003) today.

This is, somehow, a per-document setting. You can change it in Normal.dot and any new documents or templates based on Normal will inherit the setting. The trouble with this is that everybody has their own Normal template and this option doesn't seem to be accessible to VBA so each individual will need to change their own. The default on a brand new installation is "Available formatting".

To change it for an individual:

Open Word (without a document)
Select "Available styles"
Then select "Custom..." (from the same dropdown).
In the dialog, check "Save in template" and click OK.
Close Word.
You will be prompted to save the document - say No.

You should be able to create a default normal.dot you can use for all new users but for existing users you will, I think, just have to do each one independently. Also note that if an individual changes their own preference that will be reflected in any new templates they create. The real answer, as so often, is training - teach your users to follow your corporate standards.

Enjoy,
Tony

--------------------------------------------------------------------------------------------
We want to help you; help us to do it by reading this: Before you ask a question.
Excel VBA Training and more Help at VBAExpress[
 
OK, I am going to show my ignorance here. Tbere IS the following:

wdShowFilterStylesAvailable

it is part of the wdShowFilter class. Others are:

wdShowFilterFormattingAvailable
wdShowFilterStylesInUse

So there they are. There must be a way to do something with them. Unfortunately I am quite dense when it comes to really using classes.

Tony?

Gerry
 

I didn't think there was anything in the object model for this; I will have to check it out. Thank you Gerry.


Enjoy,
Tony

--------------------------------------------------------------------------------------------
We want to help you; help us to do it by reading this: Before you ask a question.
Excel VBA Training and more Help at VBAExpress[
 
You are welcome. 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. Let me know if you find anything.

Gerry
 
Hi Gerry,

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

I will do my best to work it out. I have just found out I have been awarded Microsoft Word MVP status so I'd better prove my worth [smile]

Enjoy,
Tony

--------------------------------------------------------------------------------------------
We want to help you; help us to do it by reading this: Before you ask a question.
Excel VBA Training and more Help at VBAExpress[
 
Whooowhoooo! Congratulations Tony!!!

Gerry
 

Thank you both. I'm stil finding it hard to believe.

As far as I can tell at the moment the Document filter properties don't appear to work - it wouldn't be the first time! I'm still investigating.

Enjoy,
Tony

--------------------------------------------------------------------------------------------
We want to help you; help us to do it by reading this: Before you ask a question.
Excel VBA Training and more Help at VBAExpress[
 
Hi Tony,
Our little problem caused some exitement with the VB enthusiasts. I will watch to see the solution as it evolves. However, I would like to take this opportunity to thank you for your help as it provided the solution I was searching for perfectly. All the best. Penny.
 

Congrats, Tony!

I assumed you were already there. I mean, like, invented the damn place.

Boy, are they slow!

If I might say, your contributions in/on TT are priceless/selfless.

For all you do for the rest of us, Thanks!
Tim



[blue]______________________________________________________________
I love logging onto Tek-Tips. It's always so exciting to see what the hell I
said yesterday.
[/blue]
 
Tony

See you in Seattle in Mar 2007!


Regards: tf1
 
I hope so - I've got a year to save up for it - and to persuade my family to let me go :)

Enjoy,
Tony

--------------------------------------------------------------------------------------------
We want to help you; help us to do it by reading this: Before you ask a question.
Excel VBA Training and more Help at VBAExpress[
 
Oh to be wanted! Mine can't wait to get rid of me for a week! I am planning to take part in the 2007 London to Ulaanbatar Rally: my family seem to be really keen to get rid of me for a month then too!



Regards: tf1
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top