Steve Goodhall
sgoodhall at comcast.net
Sun Mar 7 10:50:47 CST 2004
The quick answer to your question is "yes." Word has a VBA object model every bit as rich as Access. I have a macro that does something close to what you want. Rather than having a hot-key for each style, it has a single hot key that pops up a form containing a list box with style names. The style names are loaded from a text file. Any of this could be changed if you want something with fewer key strokes. If you are interested I could send it to you off-list. I actually have a bunch of Word macros that do various useful things like this. I should get up the initiative to post them on my web site. Regards, Steve Goodhall Senior Project Manager Compuware Corporation steve at goodhall.info -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of John W. Colby Sent: Saturday, March 06, 2004 8:24 AM To: DBA - Tech; AccessD Subject: [AccessD] Offtopic: Word, macros and applying styles to paragraphs I am working on formatting existing word documents to use styles from a document template. I can select text and then click on the style, select the style and apply that style to the selected text. I'm wondering if Word has a "macro" system that I could use to apply hotkeys to macro styles so that I can just tap hotkeys to apply the styles to the paragraphs selected? John W. Colby www.ColbyConsulting.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com