![]() |
|
#5
|
||||
|
||||
|
Hi bcarlier,
Based on what you've said, try: Code:
Sub ReLabelTables()
Application.ScreenUpdating = False
Dim i As Long, oPrev As Range, oNext As Range
With ActiveDocument
For i = .Tables.Count To 1 Step -1
With .Tables(i).Range
Set oPrev = .Characters.First.Previous.Characters.Last
Set oNext = .Characters.Last.Next.Paragraphs.First.Range
With oPrev
.InsertBefore vbCr
.Start = .End - 1
.Style = oNext.Style
.End = .Start
If Len(oNext.Text) > 1 Then
With oNext
.End = .End - 1
.Cut
.Delete
End With
.Paste
Else
oNext.Delete
End If
End With
End With
Next
End With
Application.ScreenUpdating = True
End Sub
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
| Tags |
| table caption positioning |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How to edit the "Format" and the "show level" of an EXISTING table of content? | Jamal NUMAN | Word | 2 | 08-14-2011 10:46 AM |
How to have the words existing in the same Outline Level to be in the Table of Conten
|
Jamal NUMAN | Word | 1 | 04-15-2011 06:26 PM |
| Word 2010 image and table captions style | chaji | Word | 0 | 09-22-2010 03:59 PM |
Captions (tables and figures)
|
mcjohn | Word | 1 | 02-11-2010 10:36 PM |
| Captions | dwilliams | Word | 0 | 10-07-2009 08:30 AM |