![]() |
|
#22
|
||||
|
||||
|
I'd approach the task rather differently:
Code:
Sub Demo()
Application.ScreenUpdating = False
Dim Tbl As Table, Rng As Range, r As Long
With ActiveDocument
Do While .Tables.Count > 0
.Tables(1).Delete
Loop
Set Tbl = .Range.ConvertToTable
With Tbl
.Columns.Add
.PreferredWidthType = wdPreferredWidthPercent
.PreferredWidth = 100
For r = 1 To .Rows.Count
Set Rng = .Cell(r, 1).Range
Rng.End = Rng.End - 1
With .Cell(r, 2).Range
.FormattedText = Rng.FormattedText
.LanguageID = wdEnglishAUS 'set your target language
.Editors.Add wdEditorEveryone
End With
Next
End With
.Protect Type:=wdAllowOnlyReading
End With
Application.ScreenUpdating = True
End Sub
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
| Tags |
| 4605, copy/paste paragraph, tables |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
delete 1 or 2 adjacent duplicate paragraphs, macro
|
moorea21 | Word | 4 | 11-01-2018 12:53 PM |
How to find duplicate phrases/paragraphs in a long document
|
iamgator | Word VBA | 5 | 12-27-2016 01:34 AM |
Using VB.Net 2010 I cannot duplicate tables in the correct place
|
AaaTeX | Word Tables | 3 | 08-03-2014 07:00 PM |
| Show & hide paragraphs, parts of tables, etc | Preloader | Word | 2 | 10-19-2013 02:37 PM |
add the functionality to show & hide paragraphs, parts of tables, etc
|
pgwolfe | Word | 3 | 09-24-2013 07:58 PM |