Thread: [Solved] StyleRef field
View Single Post
 
Old 03-21-2012, 12:11 AM
macropod's Avatar
macropod macropod is offline Windows 7 64bit Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,363
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

Hi Philip,

You could easily enough define a character Style for the Caption portion, and add that manually. If you can't rely on others to implement the solution properly (and it is a bit tricky), the Style management could be handled via a macro that simply goes through the whole document, looking for paragraphs in the Title style and ensure the character style for the Caption is applied to the first line (if there's a terminating line feed).

Frankly, the thing I think most users will have difficulty with is getting the picture between the first & second lines. I imagine many will simply insert three separate paragraphs, as you now have.

A more reliable approach would be to design a custom Quick Part that inserts a picture content control between the first & second lines, all pre-formatted, so that the user only needs to insert the picture into the content control and type the title.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote