I
Ingeborg Altern Vedal
Hi
I'm new to news, so I hope I do this the right way. Previous I've found
many «recipes» by using Google's groups. Now, however I need specific help.
I've made many macros in Word by recording, but I can't figure out how
to do this one:
I'm preparing a book for print. I would like to change paragraphs from
one style to another if the previous paragraph is a heading.
1. Find paragraph in style "Heading 1"
2. Go to next paragraph
3. I paragraph is in style "Normal" change style to "Normal 2"
4. If paragraph is not "Normal" go to next "Heading 1"
5. Do the same (1.-4.) with "Heading 2", "Heading 3" etc
If I replace all paragraphs successor to "Heading 1" to "Normal 2" I
will end up replacing all paragraphs, including "Heading 2" etc.
(The difference between "Normal" and "Normal 2" is indent/ no indent and
amount of space before paragraph.)
I appreciate any suggestions, esp. a whole VBA code!
Ingeborg Altern Vedal
I'm new to news, so I hope I do this the right way. Previous I've found
many «recipes» by using Google's groups. Now, however I need specific help.
I've made many macros in Word by recording, but I can't figure out how
to do this one:
I'm preparing a book for print. I would like to change paragraphs from
one style to another if the previous paragraph is a heading.
1. Find paragraph in style "Heading 1"
2. Go to next paragraph
3. I paragraph is in style "Normal" change style to "Normal 2"
4. If paragraph is not "Normal" go to next "Heading 1"
5. Do the same (1.-4.) with "Heading 2", "Heading 3" etc
If I replace all paragraphs successor to "Heading 1" to "Normal 2" I
will end up replacing all paragraphs, including "Heading 2" etc.
(The difference between "Normal" and "Normal 2" is indent/ no indent and
amount of space before paragraph.)
I appreciate any suggestions, esp. a whole VBA code!
Ingeborg Altern Vedal