![]() |
|
#6
|
||||
|
||||
|
The following will work as requested
Code:
Dim oTable As Table
Dim oRng As Range
If Selection.Information(wdWithInTable) = True Then
Set oTable = Selection.Tables(1)
Set oRng = oTable.Range
oRng.Collapse 1
oRng.Select
Selection.SplitTable
Set oRng = oTable.Range
oRng.Collapse 0
oRng.InsertParagraphAfter
Else
MsgBox "Selection is not in a table", vbCritical
End If
Set oTable = Nothing
Set oRng = Nothing
__________________
Graham Mayor - MS MVP (Word) (2002-2019) Visit my web site for more programming tips and ready made processes www.gmayor.com |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
Indention below paragraph mark...
|
kikola | Word VBA | 13 | 05-26-2020 06:21 AM |
| Paragraph mark added on the top of every second page | aptbs00 | Word | 6 | 09-14-2018 03:53 PM |
Replace space with paragraph mark
|
jeffreybrown | Word VBA | 8 | 08-22-2018 03:31 PM |
can't delete paragraph mark at end of document
|
kb | Word | 10 | 10-06-2017 02:32 PM |
Final paragraph mark
|
Caroline | Word | 2 | 02-22-2011 10:39 AM |