Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #2  
Old 11-26-2019, 07:03 PM
Guessed's Avatar
Guessed Guessed is offline Selecting table but can't see top of table Windows 10 Selecting table but can't see top of table Office 2016
Expert
 
Join Date: Mar 2010
Location: Canberra/Melbourne Australia
Posts: 4,176
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
 

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Selecting table but can't see top of table 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
Selecting table but can't see top of table Problem with table grid when selecting status in ribbon lodi123 Word VBA 1 02-24-2017 05:32 AM
Selecting table but can't see top of table Selecting table cell vs. text dionnaro Word Tables 1 05-24-2016 04:04 PM
Selecting table but can't see top of table 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

Other Forums: Access Forums

All times are GMT -7. The time now is 09:00 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft