![]() |
|
#2
|
||||
|
||||
|
Try this
Code:
Sub UpdateTables()
Dim x As Long
Dim MyTables As Long: MyTables = ActiveDocument.Tables.Count
Dim MyNote As String: MyNote = "Does this table have a table name"
Dim answer As String
Dim aRng As Range
Application.ScreenUpdating = False
For x = 1 To MyTables
With ActiveDocument.Tables(x)
Set aRng = .Range
aRng.MoveStart Unit:=wdParagraph, Count:=-1
aRng.Select
ActiveWindow.ScrollIntoView aRng, True
'your other code here
End With
Next x
Application.ScreenUpdating = True
End Sub
__________________
Andrew Lockton Chrysalis Design, Melbourne Australia |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
Code to find a named (bookmarked?) table, replicate a row or table, and delete a specified table.
|
kevinbradley57 | Word VBA | 9 | 09-21-2017 04:58 PM |
Problem with table grid when selecting status in ribbon
|
lodi123 | Word VBA | 1 | 02-24-2017 05:32 AM |
Selecting table cell vs. text
|
dionnaro | Word Tables | 1 | 05-24-2016 04:04 PM |
Selecting values from different rows in a table and sort them in order in a single row
|
FromF | Excel | 2 | 09-09-2014 02:30 AM |
| Selecting/deselecting items in pivot table | mbesspiata | Excel | 0 | 07-22-2014 08:15 AM |