RangeEnd

poiu

Active Member
Joined
Sep 13, 2011
Messages
384
Hello,

Please could you tell me why this code is getting the following error message (I've checked that there is data in cells A1 and A2):

"object doesn't support this property or method"


Code:
Set advanced_filter_criteria = Worksheets("Advanced filter").Range("A1").RangeEnd(xlDown)

Thanks,

Poiu
 

Excel Facts

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December
Thanks Lenze, now I am getting an error on the red line below:

"select method of range class failed"

Code:
Set advanced_filter_criteria = Worksheets("Advanced filter").Range("A1").CurrentRegion
[COLOR=red]advanced_filter_criteria.Select[/COLOR]

I definately have a worksheet called "Advanced filter" and data in cell A1, I can't think of what would cause the error?

Thanks,

Poiu
 
Upvote 0
Hi, I found the solution:

I have to select the worksheet that the range is on first and then on the next line select the range.

thanks,

Poiu
 
Upvote 0

Forum statistics

Threads
1,214,643
Messages
6,120,707
Members
448,981
Latest member
recon11bucks

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