Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 12-07-2015, 03:39 AM
ffinley ffinley is offline Copying specific columns of a table to WORD and deleting rows Windows 7 32bit Copying specific columns of a table to WORD and deleting rows Office 2010 32bit
Novice
Copying specific columns of a table to WORD and deleting rows
 
Join Date: Dec 2015
Posts: 5
ffinley is on a distinguished road
Default Copying specific columns of a table to WORD and deleting rows

Dear all,

I would be very grateful if you could help me with a VBA code for this scenario:

I will select and copy A1 : D300 from Excel to the clipboard and, then, I would like to copy and paste (only!) columns 1 and 4 of this Excel table, i. e. A1 : A300 and D1 : D300, into columns 1 and 4 of a table of the exact same size in WORD with just one click.

After selecting and copying A1 : D300 in Excel, is it then possible (and what would be the VBA code) to have a VBA code in WORD basically doing the following:

1 - Go to Column 1 of the next table (there is only one table in the WORD document) and paste Column 1 of the table in the clipboard, and

2 - Go to Column 4 of the same table and paste Column 4 of the table in the clipboard

The WORD table is of the same size (i. e. 4 columns, 300 rows).

Afterwards, I would like the VBA code to go to each Row of the WORD table and delete all rows which contain a specific wording (let's say "abcd1234").

Thank you very much for your help with this.

Best regards,



Fin
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
Copying specific columns of a table to WORD and deleting rows Mail Merge to create specific number of table rows flackend Mail Merge 4 12-01-2023 02:49 PM
Deleting info from specific table cells jamierbooth Word VBA 3 07-29-2014 03:20 PM
Copying specific columns of a table to WORD and deleting rows Deleting A blank Line that has a specific heading style , word 2010 & 2013 SteveWcg Word 5 01-08-2014 10:37 PM
Copying specific columns of a table to WORD and deleting rows Deleting rows with specific criteria joflow21 Excel 9 11-22-2013 12:10 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 01:44 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