The expression 'Selection.Tables(1)' means 'the first (usually the
only) table within the selected text'. That's different from
ActiveDocument.Tables(1), which means 'the first table in the
document'. Since the document might have more than one table, Greg's
macro depends on you putting the cursor in the table you want the
macro to work on.
If you know there is only one table in the document, or if you always
want to work on only the first table, then you can change the line in
the macro to say Set oTbl = ActiveDocument.Tables(1). Otherwise,
you'll have to figure out some other way for the macro to 'know' which
table is the right one.
--
Regards,
Jay Freedman
Microsoft Word MVP
Email cannot be acknowledged; please post all follow-ups to the
newsgroup so all may benefit.