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 adjacent styles?



 
 
Thread Tools Display Modes
  #1  
Old December 15th, 2006, 04:39 PM posted to microsoft.public.word.tables
Tom
external usenet poster
 
Posts: 61
Default Apply Para Keep With Next command to two adjacent styles?


I have a long document with many images and captions below the images.
Sometimes due to page layout, the captions spill onto the next page
without the image. To fix this, I select the caption and image and
apply the Para Keep With Next command. This locks them together on the
same page.

I would like to automate this with a macro. All my images are in one
style (image) and all the captions are in another style (caption). Is
it possible to create a macro that says, find all instances where the
caption style is adjacent to the image style, and apply the Para Keep
With Next command?

 




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 02:47 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.