Prev: Protected Forms Checkboxes vs. ActiveX Controls vs. Any Altern
Next: Office System 2010: List of Controls IDs
From: andreas on 28 Apr 2010 09:13 Dear Experts: I would like to have a macro that performs the following task: As soon as the macro hits the word "Speaker", built-in style heading 1 is to applied to the paragraph where the word "Speaker" occurs. Help is much appreciated. Thank you very much in advance. Regards, Andreas
From: Jay Freedman on 28 Apr 2010 10:27 A macro isn't required for this. All you need is the Replace dialog. In the Replace dialog, click the More button to expand the bottom half. Click in the Find What box and enter the word Speaker. I assume you wouldn't want to reformat a paragraph that contains that word in lower case, such as "Tonight's speaker will be...", so be sure to capitalize it in the Find What box, and check the box for Match Case. Now click in the Replace With box. You can use the Special button and choose the "Find What Text" entry, or just type the code ^& in the Replace With box. Then click the Format button, choose Style, and select the Heading 1 style from the list. Finally, click the Replace All button. If you really want a macro for some reason, you can record one while doing these steps. -- Regards, Jay Freedman Microsoft Word MVP FAQ: http://word.mvps.org Email cannot be acknowledged; please post all follow-ups to the newsgroup so all may benefit. andreas wrote: > Dear Experts: > > I would like to have a macro that performs the following task: > > As soon as the macro hits the word "Speaker", built-in style heading 1 > is to applied to the paragraph where the word "Speaker" occurs. > > Help is much appreciated. > > Thank you very much in advance. > > Regards, Andreas
From: andreas on 29 Apr 2010 08:38
On 28 Apr., 16:27, "Jay Freedman" <jay.freed...(a)verizon.net> wrote: > A macro isn't required for this. All you need is the Replace dialog. > > In the Replace dialog, click the More button to expand the bottom half. > > Click in the Find What box and enter the word Speaker. I assume you wouldn't > want to reformat a paragraph that contains that word in lower case, such as > "Tonight's speaker will be...", so be sure to capitalize it in the Find What > box, and check the box for Match Case. > > Now click in the Replace With box. You can use the Special button and choose > the "Find What Text" entry, or just type the code ^& in the Replace With > box. Then click the Format button, choose Style, and select the Heading 1 > style from the list. > > Finally, click the Replace All button. > > If you really want a macro for some reason, you can record one while doing > these steps. > > -- > Regards, > Jay Freedman > Microsoft Word MVP FAQ:http://word.mvps.org > Email cannot be acknowledged; please post all follow-ups to the newsgroup so > all may benefit. > > > > andreas wrote: > > Dear Experts: > > > I would like to have a macro that performs the following task: > > > As soon as the macro hits the word "Speaker", built-in style heading 1 > > is to applied to the paragraph where the word "Speaker" occurs. > > > Help is much appreciated. > > > Thank you very much in advance. > > > Regards, Andreas- Zitierten Text ausblenden - > > - Zitierten Text anzeigen - Hi Jay, great. That's it. Thank you very much for your professinal help. Regards, Andreas |