Macro writting to walk down the document and replace the style

  • Thread starter Making a more workable Macro
  • Start date
M

Making a more workable Macro

Big AllenCan a macro be wriitten to replace the style of heading marked like
4.5.1 "some text" then paragraph mark. I can walk down the using find and
replace but it sometimes gets the paragraph number text nd also replaces a 4
number text with a three number heading style?
I want to only tag "style" the heading by the numbers and periods.
I used the text, and ^#.^# to replace the style but it doesn't work good
enough.
Allen
 
D

Doug Robbins - Word MVP

Show us the code that you have.

Replace with what?

Does the 4.5.1 "some text" then paragraph mark have a style such as Heading
3 applied to it or, were the numbers merely entered from the keyboard? If
that is the case, what separates the numbers from the text? Spaces or a
Tab?

--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP

"Making a more workable Macro" <Making a more workable
[email protected]> wrote in message
news:[email protected]...
 
Top