Copy Paste Loop

mattddox

New Member
Joined
Nov 3, 2014
Messages
2
Hi,

I am extremely new to macros and I am trying to create a macro that will copy paste a value from a spreadsheet called numbers.xlsm to a new spreadsheet called vlookup template.xlsm. In vlookup template.xlsm there are a series of vlookup functions. I want the value from numbers.xlsm to be pasted to the lookup value column in vlookup template.xlsm.

Then I want the macro to copy output produced by the vlookup functions and paste it into a new spreadsheet called demographics.xslm

I want the macro to loop for every value in numbers.xlsm

I am not even sure if this is possible but I would greatly appreciate any help.

Here is an example to clarify what I would like

numbers.xlsm vlookup template.xlsm demographics.xslm
1001- copy 1001-paste ( D 51 left )- Copy ( D 51 left )- Paste
these values are from vlookup
 

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.

Forum statistics

Threads
1,215,660
Messages
6,126,089
Members
449,288
Latest member
DjentChicken

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top