Ive specified Range incorrectly...

Andy D 2002

Board Regular
Joined
Apr 22, 2002
Messages
106
hi this is not working

any ideas as to why?

cheers

Andy


Sheets("report2").Range(Cells(j, 3), Cells(j, 8)) = Sheets("All_Clients1").Range(Cells(i, 6), Cells(i, 11))
 

Excel Facts

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.
I don't think you can set a range of multiple cells like that without copying or using a loop.

Here is a loop solution:
Code:
    Dim x As Integer
    For x = 3 To 8
        Sheets("report2").Cells(j, x) = Sheets("All_Clients1").Cells(i, x + 3)
    Next x
 
Upvote 0

Forum statistics

Threads
1,203,462
Messages
6,055,565
Members
444,799
Latest member
CraigCrowhurst

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