![]() |
|
#2
|
||||
|
||||
|
The table count can be obtained with:
ActiveDocument.Tables.Count A loop in VBA might be constructed with code like: Code:
Sub Demo1()
Dim i As along
With ActiveDocument
For i = 1 To .Tables.Count
'process the table
With .Tables(i)
'table processing code goes here
End With
'or, perhaps:
.Tables(i).Range.Copy
Next
End With
End Sub
Code:
Sub Demo2()
Dim Tbl As Table
For Each Tbl In ActiveDocument.Tables
'process the table
With Tbl
'table processing code goes here
End With
'or, perhaps:
Tbl.Range.Copy
Next
End Sub
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
Convert Word Tables to PDF
|
tcoggins | Word Tables | 2 | 06-29-2016 10:28 AM |
Excel Tables in Word, format issues
|
kamal.shah | Word Tables | 2 | 01-26-2015 03:47 AM |
| convert tables to fillable forms in word | expert4knowledge | Word | 1 | 02-13-2014 03:06 AM |
Unable to convert word to MOBI format
|
fig000 | Word | 1 | 11-17-2013 01:46 AM |
| Convert a file from HTML to WORD format weblayout view | gtselvam | Word | 0 | 12-02-2008 03:53 AM |