Formatting in a Word Document

pkrishna

New Member
Joined
May 3, 2012
Messages
46
I have a word document with several articles/stories separated by column breaks. After each column break, a title appears, and then the text of that article.

Is there a way to detect the column break (that I know - look for ^14), select the next whole paragraph (article title), and apply a format (font size, bold) for it?
 

Excel Facts

Fastest way to copy a worksheet?
Hold down the Ctrl key while dragging tab for Sheet1 to the right. Excel will make a copy of the worksheet.
With a wildcard Find/Replace, you can use:
Find = ^14[!^13]@^13
As for the replacement, you should define a paragraph Style with the attributes you want and apply that via the Replace, rather than trying to hard-format the text.
 
Upvote 0
With a wildcard Find/Replace, you can use:
Find = ^14[!^13]@^13
As for the replacement, you should define a paragraph Style with the attributes you want and apply that via the Replace, rather than trying to hard-format the text.

May I request you to show me the syntax for the Replace part of this task too?

While I am somewhat familiar with VBA for Excel, I am a beginner as far as VBA for Word is concerned.

In this particular instance, I need only to do BOLD and set FontSize to a number (18). But I would like to know how refer to an existing style too.

Thanks.
 
Upvote 0
May I request you to show me the syntax for the Replace part of this task too?
Replace = ^&
While I am somewhat familiar with VBA for Excel, I am a beginner as far as VBA for Word is concerned.
This isn't vba, per se, though it could be encoded as such.
In this particular instance, I need only to do BOLD and set FontSize to a number (18). But I would like to know how refer to an existing style too.
Once you've defined the Style, simply choose that via the Format options, just as you would a font attribute.
 
Upvote 0

Forum statistics

Threads
1,225,616
Messages
6,186,016
Members
453,334
Latest member
Prakash Jha

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top