A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Word » Tables
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Apply Para Keep with Next command to two items automatically?



 
 
Thread Tools Display Modes
  #1  
Old December 15th, 2006, 05:08 PM posted to microsoft.public.word.tables
Tom
external usenet poster
 
Posts: 61
Default Apply Para Keep with Next command to two items automatically?

Is it possible to apply the Para Keep with Next command to two items of
the same style automatically?

For example, I have a long Word document with numerous images and
captions below the images. The images and captions should always be
together, but sometimes due to page layout, the caption spills onto the
next page without the image.

Captions are always in one style ("Caption").
Images have another style ("Body Text 2").

I would like to somehow create a maco that says, find all instances
where the caption style and the Body Text 2 style are right next to
each other, and apply the Para Keep With Next command to both of them.
Is that possible, or am I dreaming?

Tom

(Sorry, I know this isn't a table question, but I didn't know what
other forum to ask this in.)

  #2  
Old December 15th, 2006, 05:21 PM posted to microsoft.public.word.tables
Suzanne S. Barnhill
external usenet poster
 
Posts: 31,786
Default Apply Para Keep with Next command to two items automatically?

You don't want KWN to apply to both styles, only the image (if the caption
is beneath it). Otherwise both image and following caption will spill to the
next page whenever there is not room for them *and* the following text
paragraph. No macro is needed; the way to make this happen "automatically"
is to modify the Body Text 2 style to include the "Keep with next" property.
See http://www.shaunakelly.com/word/styl...ifyAStyle.html for the general
principles; in the Modify Style dialog, click Format, then Paragraph, then
check "Keep with next."

FWIW, a more appropriate NG for this question would be
microsoft.public.word.pagelayout.

--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA
Word MVP FAQ site: http://word.mvps.org
Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.

"Tom" wrote in message
ups.com...
Is it possible to apply the Para Keep with Next command to two items of
the same style automatically?

For example, I have a long Word document with numerous images and
captions below the images. The images and captions should always be
together, but sometimes due to page layout, the caption spills onto the
next page without the image.

Captions are always in one style ("Caption").
Images have another style ("Body Text 2").

I would like to somehow create a maco that says, find all instances
where the caption style and the Body Text 2 style are right next to
each other, and apply the Para Keep With Next command to both of them.
Is that possible, or am I dreaming?

Tom

(Sorry, I know this isn't a table question, but I didn't know what
other forum to ask this in.)


  #3  
Old December 15th, 2006, 06:18 PM posted to microsoft.public.word.tables
Tom
external usenet poster
 
Posts: 61
Default Apply Para Keep with Next command to two items automatically?

I didn't realize such a simple fix would actually work, but I just
tried it and it did. Thanks Susan.

Also, I was unaware of the page layout forum. I'll subscribe to that.

Sorry for the duplicate posts -- I kept getting a server timed out
error, and didn't realize it had posted.

Thanks for your help.

Tom

  #4  
Old December 15th, 2006, 06:58 PM posted to microsoft.public.word.tables
Suzanne S. Barnhill
external usenet poster
 
Posts: 31,786
Default Apply Para Keep with Next command to two items automatically?

Sorry for the duplicate posts -- I kept getting a server timed out
error, and didn't realize it had posted.


That seems to happen a lot, though usually in the Communities forum.

--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA
Word MVP FAQ site: http://word.mvps.org
Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.

"Tom" wrote in message
ups.com...
I didn't realize such a simple fix would actually work, but I just
tried it and it did. Thanks Susan.

Also, I was unaware of the page layout forum. I'll subscribe to that.

Sorry for the duplicate posts -- I kept getting a server timed out
error, and didn't realize it had posted.

Thanks for your help.

Tom


 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 03:26 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.