Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #22  
Old 05-26-2021, 07:38 PM
macropod's Avatar
macropod macropod is offline Duplicate paragraphs except in tables Windows 10 Duplicate paragraphs except in tables Office 2016
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,521
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

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
The above code deletes all existing tables, then converts what remains to a two-column table, with the same content in both columns, the second of which remains unprotected. This gives you a document in which you'll have the original content on the left and your translation text on the right, with rows aligned at the paragraph level.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
 

Tags
4605, copy/paste paragraph, tables

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Duplicate paragraphs except in tables delete 1 or 2 adjacent duplicate paragraphs, macro moorea21 Word 4 11-01-2018 12:53 PM
Duplicate paragraphs except in tables How to find duplicate phrases/paragraphs in a long document iamgator Word VBA 5 12-27-2016 01:34 AM
Duplicate paragraphs except in tables 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
Duplicate paragraphs except in tables add the functionality to show & hide paragraphs, parts of tables, etc pgwolfe Word 3 09-24-2013 07:58 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 01:59 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft