VBA Scrip to Identify a cell in Sheet 1 and paste data under the identified cell.

bala4370

New Member
Joined
Mar 13, 2018
Messages
1
Hi,

I am looking for a simple macro for

1. Read the date in Cell K2 (Sheet 2) and find the same date in Row 1 in Sheet 1.
2. Once the date is identified, copy data from Cell C2:C230 and paste it under the identified cell.

For Example : If the Date is identified in cell H1 of Sheet 1, the data needs to be pasted in cells H3:H231

Regards,
Santhosh
 

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
write your macro in sheet 2, set mydate = cells(2,11)
copy the cells using range("c2:c230").select and selection.copy
then sheets(1).select
you are now in sheet 1 so run along row 1 until date matches
drop down one cell and paste

or do you not use macros at all ?
 
Upvote 0

Forum statistics

Threads
1,223,909
Messages
6,175,314
Members
452,634
Latest member
cpostell

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