Range

poiu

Active Member
Joined
Sep 13, 2011
Messages
384
Hello,

The line of code below if giving the error message "Method 'Range' of object '_Global' failed.

Set adjusted_date_cells_in_calendar = Range("FY2012!H9:H39,R9:R39,AA9:AA39,AJ9:AJ39,AS9:AS39,BB9:BB39,BK9:BK39,BT9:BT39,CL9:CL39,CU9:CU39,DD9:DD39,DM9:DM39")

I've tried with and without the word "Set" at the front but I get the same error message. (there are no hidden rows or columns)

Thanks,

Poiu
 
Last edited:

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes
Perhaps

Code:
Set adjusted_date_cells_in_calendar = Sheets("FY2012").Range("H9:H39,R9:R39,AA9:AA39,AJ9:AJ39,AS9:AS39,BB9:BB39,BK9:BK39,BT9:BT39,CL9:CL39,CU9:CU39,DD9:DD39,DM9:DM39")
 
Upvote 0

Forum statistics

Threads
1,224,505
Messages
6,179,147
Members
452,891
Latest member
JUSTOUTOFMYREACH

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