![]() |
|
#1
|
||||
|
||||
![]()
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 |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
kevinbradley57 | Word VBA | 9 | 09-21-2017 04:58 PM |
![]() |
lodi123 | Word VBA | 1 | 02-24-2017 05:32 AM |
![]() |
dionnaro | Word Tables | 1 | 05-24-2016 04:04 PM |
![]() |
FromF | Excel | 2 | 09-09-2014 02:30 AM |
Selecting/deselecting items in pivot table | mbesspiata | Excel | 0 | 07-22-2014 08:15 AM |