Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 11-13-2017, 08:08 PM
Jimbeambabob Jimbeambabob is offline First Post - Macro to paste specific columns only Windows 10 First Post - Macro to paste specific columns only Office 2016
Novice
First Post - Macro to paste specific columns only
 
Join Date: Nov 2017
Posts: 1
Jimbeambabob is on a distinguished road
Smile First Post - Macro to paste specific columns only

Hi everyone,



First post here. I have managed to teach myself to write basic VBA code and generally I can find the answer I am looking for by searching forums but this particular problem has me stumped.

What I need to do is create a Word macro that will only paste certain cells from a table in the clipboard. For example, if I copy a single row from another documents table with 5 columns in it and only want to paste columns 1,3 and 5.

Anyone have any ideas? Any help would be much appreciated.
Reply With Quote
  #2  
Old 11-13-2017, 10:07 PM
macropod's Avatar
macropod macropod is offline First Post - Macro to paste specific columns only Windows 7 64bit First Post - Macro to paste specific columns only Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,963
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

AFAIK, you can't do that from the clipboard; the contents there are all one object. In any event, if you know what the source & destination tables are, you should be able to replicate the data without going via the clipboard.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
Reply

Tags
column paste clipboard



Similar Threads
Thread Thread Starter Forum Replies Last Post
First Post - Macro to paste specific columns only Post PowerPoint VBA Macro Project jigargogri PowerPoint 1 09-20-2016 06:52 AM
Trying to find a macro that will copy a cell and paste that value to a specific sheet bryans88 Excel Programming 1 12-23-2015 01:40 PM
First Post - Macro to paste specific columns only Macro to copy specific columns in Excel from another spreadsheet KD999 Excel Programming 1 07-20-2012 08:58 AM
How to separate specific columns from the data kumar Word 1 06-04-2012 01:46 PM
Adding columns in specific rows only mhays Excel 5 01-17-2012 09:13 AM

Other Forums: Access Forums

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