Copy Data into another sheet

fari1

Active Member
Joined
May 29, 2011
Messages
362
my code copies a range from one sheet and paste it into another based upon cell adress from another sheet, but these code is not working when i amend it for just one cell value.
and below part of the code is highlighted

Code:
sh1.Range(cel.Offset(0, 3).Value & ":" & cel.Value).copy sh2.[I1]

my full code is
Code:
Sub filter()
Application.ScreenUpdating = False
Dim sh1 As Worksheet
Dim sh2 As Worksheet
Dim cel As Range, Col As Range
Set sh1 = Sheets("info")
Set sh2 = Sheets("filter")
cel In sh2.Range("L1:L" & sh2.Range("L1").End(xlDown).Row)
sh1.Range(cel.Offset(0, 3).Value & ":" & cel.Value).copy sh2.[I1]
End Sub
 

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.

Forum statistics

Threads
1,224,521
Messages
6,179,277
Members
452,902
Latest member
Knuddeluff

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