Wrapping text around a table using styles

R

Richard Munro

Hi,

I'm editing quite a long document in Word 2003 which contains a lot of
tables. I have decided that I would like to add a bit more blank
space after the last row of each table, before text restarts. All the
tables use the same custom style.
Doing this for an individual table is no problem - in the 'Table
properties' dialogue box I change the text wrapping to 'Around' and
then specify the values I require in the 'Distance from surrounding
text' section of the 'Positioning' sub dialogue box.
However, I am unable to achieve this for all tables using this Style
tag. If I try to modify the style then the 'Text wrapping' options on
the 'Table Properties' dialogue are greyed out. If I update a single
table, then the 'Update to match selection' option in the 'Styles and
formatting' pane is greyed out. If I use the option to 'Select all 84
instances' and then open 'Table Properties' I am able to select the
'Around' text wrapping style, but the 'Positions' dialogue box does
not open, though the button is not greyed out. I don't really want to
use this last method anyhow, but thought I'd try everything I can.
Why? And, more importantly, can I get around this? By the way, I am
using document protection, but have it turned off for making this
change.

Many thanks for any thoughts on this.

Richie
 
K

Klaus Linke

Hi Richard,

I don't use wrapped tables myself, and usually not even table styles, but you should be able to set the bottom distance to text with a macro:

Dim myTable As Table
For Each myTable In ActiveDocument.Tables
If myTable.Style = "YourTableStyle" Then
myTable.Rows.DistanceBottom = 24
End If
Next myTable

(where you change "YourTableStyle" to the name of your table style).

Unfortunately, it's not something you can define in the table style.

Regards,
Klaus
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top