Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #6  
Old 01-16-2023, 08:38 AM
AlanCantor AlanCantor is offline Select a table in Word Windows 10 Select a table in Word Office 2019
Competent Performer
Select a table in Word
 
Join Date: Nov 2020
Posts: 155
AlanCantor is on a distinguished road
Default

Thank you for the helpful responses!

While testing your code samples, and more of my own, I began to question the requirement that the cursor be inside a table. For example, what if the cursor is immediately AFTER a table? That should be OK.

Through trial-and-error, I learned that this instruction...

Code:
    Selection.Tables(1).Select

...selects the table above when the cursor is on the blank line that follows a table.

My guess is that the blank line inherits the formatting carried by the end-of-table marker. It's as if the blank line is programmatically part of the table that precedes it. But the blank line doesn't get selected.


I learned a lot today!
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
Select a table in Word How to Select All or Part of a Table in Word jeffreybrown Word VBA 2 09-03-2018 08:23 PM
Looking to copy select cells in table using dropdown list to paste to new table in another worksheet CaptainRetired Excel Programming 18 01-04-2018 07:22 PM
VBA Word Table - Select More than 1 Column at a time - Apply Formatting jc491 Word VBA 12 09-24-2015 06:03 AM
Select a table in Word Can't select a cell in my table dilorenzoc Word Tables 1 06-03-2015 05:56 AM
Select a table in Word Select Text in Table but Table Gets Selected Too RBusiness Word 1 06-07-2011 04:26 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 12:11 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