This is topic Attach macros to styles? in forum Books, Films, Food and Culture at Hatrack River Forum.


To visit this topic, use this URL:
http://www.hatrack.com/ubb/main/ultimatebb.php?ubb=get_topic;f=2;t=049135

Posted by Javert Hugo (Member # 3980) on :
 
I'm creating a template in Word, and I was trying to figure out how to attach macros to styles. It doesn't seem to be possible to attach a number of codes to styles in Word as it is in WordPerfect, but I'm hoping there actually is a way and I'm missing it.

I can make the macros and I can make the styles, but I want the user to be able to select a style for a paragragh and certain text appear, or, in one case, the document switch to landscape view from that point forward. Any ideas?
 
Posted by TomDavidson (Member # 124) on :
 
Which version of Word?
 
Posted by Javert Hugo (Member # 3980) on :
 
2003

My current work-around is to create a new menu and put the styles and the macros on the same menu. Users generally won't be able to tell which one it is.

This isn't perfect, though, because there will still be users who will want all of the actions available from the styles menu, like they are in WordPerfect.
 
Posted by Dagonee (Member # 5818) on :
 
One thing you can do is have the macros change the style as well as do the other stuff. It doesn't entirely solve your problem, but it lets you have a single command perform everything at once.
 
Posted by TomDavidson (Member # 124) on :
 
Yep. That's the approach I'd take. Write a macro that changes the style, then does everything else, and stick that macro on the toolbar.
 
Posted by Javert Hugo (Member # 3980) on :
 
Hmmm... [Frown] I think Word doesn't actually do what I want it to do. The approach described above is the one I'm taking right now. The problem is that there are about 25 original styles - too many to put in anything other than a list.

Oh well - I'm sure someone will whine, but as long as I'm not missing a way to put the macros in the Styles list, I can tell them that great new CRS menu is a "feature."
 
Posted by Dagonee (Member # 5818) on :
 
You could make a macro for each style, even if it doesn't do anything else, then make a menu for all those macros. Menus can hold 25 items easily.
 
Posted by Javert Hugo (Member # 3980) on :
 
You can list styles as well as macros on a menu, so that's what I'm doing. The user won't be able to tell if they've clicked a macro or a style. I think that works okay, although there will have to be some instructions/retraining involved, which makes people cranky and say nasty things about the technology office.

What I really want is for the user to be able to click the button that lists the styles in the right-hand panel, and all of the styles and macros appear in that list. [Frown] I don't think that's possible.
 
Posted by TomDavidson (Member # 124) on :
 
Weeeellll.....It IS possible. But you don't want to do it. For one thing, if your company's committed to Word now, you don't want to spend a lot of time training your users to not get used to Word's default behaviors. For another, you'd have to sink quite a lot of development time into what amounts to a very menial bit of hand-holding.
 


Copyright © 2008 Hatrack River Enterprises Inc. All rights reserved.
Reproduction in whole or in part without permission is prohibited.


Powered by Infopop Corporation
UBB.classic™ 6.7.2