Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 08-10-2017, 01:44 AM
ArtKilp ArtKilp is offline Select pasted Windows 8 Select pasted Office 2016
Novice
Select pasted
 
Join Date: Jan 2016
Posts: 18
ArtKilp is on a distinguished road
Default Select pasted

When I copy a table in Word and then paste it, what is the best option you are aware of to select that pasted table?
Reply With Quote
  #2  
Old 08-10-2017, 03:58 AM
gmayor's Avatar
gmayor gmayor is offline Select pasted Windows 10 Select pasted Office 2016
Expert
 
Join Date: Aug 2014
Posts: 4,101
gmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud of
Default

The simplest option is to click in the table then click the handle that appears outside the top left corner of the table.

Or you could paste and select using a macro e.g.

Code:
Sub PasteAndSelectTable()
    Selection.Paste
    If Selection.Tables.Count > 0 Then
        Selection.Tables(1).Select
    End If
End Sub
However if you are going to the trouble of using a macro, then there may be no need to 'select' the table as you can work with the pasted table without selecting it. Much depends on the point of the exercise.

You could even replace the built-in Paste command by renaming the Macro EditPaste
Code:
Sub EditPaste()
Then when you use the Word Paste command, if there is a table on the clipboard it will be pasted and selected.
__________________
Graham Mayor - MS MVP (Word) (2002-2019)
Visit my web site for more programming tips and ready made processes www.gmayor.com
Reply With Quote
  #3  
Old 08-10-2017, 07:23 AM
ArtKilp ArtKilp is offline Select pasted Windows 8 Select pasted Office 2016
Novice
Select pasted
 
Join Date: Jan 2016
Posts: 18
ArtKilp is on a distinguished road
Default

Quote:
Originally Posted by gmayor View Post
The simplest option is to click in the table then click the handle that appears outside the top left corner of the table.

Or you could paste and select using a macro e.g.

Code:
Sub PasteAndSelectTable()
    Selection.Paste
    If Selection.Tables.Count > 0 Then
        Selection.Tables(1).Select
    End If
End Sub
However if you are going to the trouble of using a macro, then there may be no need to 'select' the table as you can work with the pasted table without selecting it. Much depends on the point of the exercise.

You could even replace the built-in Paste command by renaming the Macro EditPaste
Code:
Sub EditPaste()
Then when you use the Word Paste command, if there is a table on the clipboard it will be pasted and selected.
The point is to make a blank copy of a table. So far (with great help of people ) I've been able to select the table, copy the table, paste the table and clear content control values. The final (I hope) problem is that the clearing clears all tables, not only the new copy.
Reply With Quote
Reply

Tags
pasting, selection

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Select pasted How to fix pasted text michellesmith Word 3 08-03-2017 08:29 PM
Select pasted how do I make pasted text the same size as the text it's being pasted into? David Lee Word 6 08-16-2015 10:46 AM
Select pasted How To Squash Up a Pasted In Table? abrogard Word 6 06-07-2014 02:32 AM
Select pasted Pasted text comes in columns yotas312 Word 2 11-12-2011 07:58 AM
Select pasted Picture -it pasted into Word eeyore Word 1 01-30-2011 11:39 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 02:21 PM.


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