Copy and paste macro for dependent cells

adamcooke148

New Member
Joined
Jan 12, 2015
Messages
1
Hi,

What I need is a macro that can copy and paste values back and forth and then work down a list of values. I cannot get some basic macros to do it and am stumped; VBA isnt my forte.

I have 2 active sheets in my spreadsheet; Sheet 1 contains some formulae dependent on a certain cell that generates an output, sheet 2 contains a list of data.

The macro would copy a value from sheet 2 cell C2 and paste it into sheet 1 $B$8. Sheet 1 $B$8 does not change throughout the macro. This value has a vlookup linked to it to pull through values that the formulae use. This generates answers in cells B20 and B22 on sheet 1 and i need these values then need to be copied and pasted over to sheet 2 cells G2 and H2 respectively.

Instead of doing this all manually, the macro would need to repeat the process and work down the list in Sheet 2 from C2 to C288.

Any help would be greatly appreciated!

Many Thanks,
 

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.
Welcome to MrExcel.

Why can't you just use formulas in G2:G288 and H2:H288 in sheet 2 like you have in B20 and B22 on sheet 1?
 
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,324
Members
452,635
Latest member
laura12345

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