Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / April 2006

Tip: Looking for answers? Try searching our database.

Delete styles from menu

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Chris Mahoney - 10 Apr 2006 23:00 GMT
Hi

How can I programmatically delete (or hide) styles from the Style
dropdown in Word? Our corporate templates will have their own set of
styles, and we want to get rid of any other styles in the menu so that
users don't accidentally use them. How can I accomplish this?

Thanks
Chris
Charles Kenyon - 10 Apr 2006 23:07 GMT
How about setting up a custom menu that only has your styles in it? Which
styles get displayed in Word's various styles displays depends on the system
settings as well as which version of Word you are working with. Put it in a
global, make sure that the styles actually exist in each of your document
templates, and in your global, remove the Style-Built-In drop-down from the
Formatting toolbar (possibly replacing it with your own).
Signature

Charles Kenyon

Word New User FAQ & Web Directory: http://addbalance.com/word

Intermediate User's Guide to Microsoft Word (supplemented version of
Microsoft's Legal Users' Guide) http://addbalance.com/usersguide

See also the MVP FAQ: http://word.mvps.org/FAQs/ which is awesome!
--------- --------- --------- --------- --------- ---------
This message is posted to a newsgroup. Please post replies
and questions to the newsgroup so that others can learn
from my ignorance and your wisdom.

> Hi
>
[quoted text clipped - 5 lines]
> Thanks
> Chris
Charles Kenyon - 10 Apr 2006 23:07 GMT
Also, some styles, like normal and the heading styles, cannot be deleted.
Signature

Charles Kenyon

Word New User FAQ & Web Directory: http://addbalance.com/word

Intermediate User's Guide to Microsoft Word (supplemented version of
Microsoft's Legal Users' Guide) http://addbalance.com/usersguide

See also the MVP FAQ: http://word.mvps.org/FAQs/ which is awesome!
--------- --------- --------- --------- --------- ---------
This message is posted to a newsgroup. Please post replies
and questions to the newsgroup so that others can learn
from my ignorance and your wisdom.

> Hi
>
[quoted text clipped - 5 lines]
> Thanks
> Chris
Chris Mahoney - 19 Apr 2006 02:29 GMT
OK, it's been a whole week (sorry for not replying earlier, I forgot
about this) and there haven't been any other suggestions, so it looks
like that might be the only way. Seems a bit clunky though :(

Chris
Charles Kenyon - 19 Apr 2006 18:26 GMT
Any programming to delete or hide styles is going to be very
version-dependent. Within the version, it will depend on what the user
options are. Then you have to try to preserve the user options while
enforcing your views. A custom style menu is a lot easier.
Signature

Charles Kenyon

Word New User FAQ & Web Directory: http://addbalance.com/word

Intermediate User's Guide to Microsoft Word (supplemented version of
Microsoft's Legal Users' Guide) http://addbalance.com/usersguide

See also the MVP FAQ: http://word.mvps.org/FAQs/ which is awesome!

My criminal defense site: http://addbalance.com
--------- --------- --------- --------- --------- ---------
This message is posted to a newsgroup. Please post replies
and questions to the newsgroup so that others can learn
from my ignorance and your wisdom.

> OK, it's been a whole week (sorry for not replying earlier, I forgot
> about this) and there haven't been any other suggestions, so it looks
> like that might be the only way. Seems a bit clunky though :(
>
> Chris
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.