VBA- copy and paste

Nani520

New Member
Joined
Sep 22, 2021
Messages
28
Office Version
  1. 2016
Platform
  1. Windows
Hi All,

need some help here. Appreciate if anyone can help to build a Macro to copy data from Sheet1 and paste into Sheet2.
Sheet2 Column H to Sheet1 Column D
Sheet2 Column I to Sheet1 Column F
Sheet2 Column J to Sheet1 Column H
Sheet2 Column K to Sheet1 Column I

Thanks in advance!!!

Sheet 1:
1633247343291.png



Sheet 2:

1633247369048.png
 

Excel Facts

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.
Do you really need a Macro?
You could simply assign the data from sheet 2 to sheet 1 like this

in Sheet 1: D2 = Sheet2!H7
in Sheet 1: F2 = Sheet2!I7
in Sheet 1: H2 = Sheet2!J7
in Sheet 1: I2 = Sheet2!K7

If you still need a macro, let me know
 
Upvote 0
Do you really need a Macro?
You could simply assign the data from sheet 2 to sheet 1 like this

in Sheet 1: D2 = Sheet2!H7
in Sheet 1: F2 = Sheet2!I7
in Sheet 1: H2 = Sheet2!J7
in Sheet 1: I2 = Sheet2!K7

If you still need a macro, let me know
yaya and following the number in column A, possible to do that?
 
Upvote 0

Forum statistics

Threads
1,214,892
Messages
6,122,112
Members
449,066
Latest member
Andyg666

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