View Single Post
 
Old 11-26-2019, 07:03 PM
Guessed's Avatar
Guessed Guessed is offline Windows 10 Office 2016
Expert
 
Join Date: Mar 2010
Location: Canberra/Melbourne Australia
Posts: 3,984
Guessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant future
Default

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
Reply With Quote