![]() |
|
#2
|
||||
|
||||
![]()
Try:
Code:
Sub CopyTables() Application.ScreenUpdating = False Dim DocSrc As Document, DocTgt As Document, Tbl As Table, Rng As Range Set DocSrc = ActiveDocument: Set DocTgt = Documents.Add For Each Tbl In DocSrc.Tables Set Rng = DocTgt.Characters.Last With Rng .Collapse wdCollapseEnd .FormattedText = Tbl.Range.FormattedText .Tables(1).Style = "Table Grid" .Collapse wdCollapseEnd .InsertAfter vbCr End With Next Set DocSrc = Nothing: Set DocTgt = Nothing Application.ScreenUpdating = True End Sub
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
Tags |
strip styles, table styles |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
nparsons75 | Word | 6 | 01-08-2016 07:47 AM |
![]() |
OTPM | Project | 4 | 08-22-2013 01:33 PM |
![]() |
etippelt | Word VBA | 6 | 04-08-2013 05:55 PM |
Adding Macro menu to the right click menu (Word 2007) | masam123 | Word | 0 | 10-14-2011 04:05 AM |
Macro for automatically adding filename without .doc | RPM7 | Word VBA | 0 | 04-29-2010 01:43 AM |