![]() |
#1
|
|||
|
|||
![]()
Hi guys...
I have a document on which there is a specific table. I want to copy that table "as is" to another document, but WITHOUT using the clipboard. I can save the table in a variable Dim'd as Word.Table, but I dont know how to insert that table into another document. I can't find an "Activedocument.Tables.Insert" with a table as an operand; all I've found is the "ActiveDocument.Tables.Add", which doesn't seem to have the facility to have a table variable as an operand. I know I could extract the dimensions, formats and contents and use those details to "Add" and then populate the new table, but that's one great lump of coding I'd like to avoid. Surely if I can code Code:
Dim tbl As Word.Table Set tbl = ActiveDocument.Tables(1) Code:
Dim tbl As Word.Table ActiveDocument.Tables.insert(tbl) Can ayone help? |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
syntax for inserting blank line before inserting table and after a line or paragraph | SamDsouza | Word VBA | 8 | 08-04-2019 11:10 PM |
Inserting graphic in last table | lodi123 | Word VBA | 2 | 07-07-2017 06:48 AM |
![]() |
snufse | Word VBA | 1 | 11-10-2015 03:28 PM |
![]() |
natasha_arriell | Mail Merge | 4 | 06-04-2014 12:13 AM |
Inserting a table | Katelyn | Outlook | 0 | 04-05-2012 09:39 AM |