Class and Function Q

Hap

Well-known Member
Joined
Jul 20, 2005
Messages
647
Is it possible to send a class object to a function? I keep getting an error 438 "Object doesn't support this property or method".

Thanks
 
The new error is in the CornerSort = UnSorted line of the function.

"Object variable or with block variable not set"
 
Upvote 0

Excel Facts

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.
I have been over the code and I cannot find the source of the problem.

Any help here would be great.

Thanks Norie for your help so far.
 
Upvote 0
I'm no expert on this type of thing but perhaps you need Set.
Code:
Set CornerSort = UnSorted
 
Upvote 0
I just tried that and now I can and error in the function call again:

newArea = CornerSort(newArea)

"Object does not support this property or method"
 
Upvote 0

Forum statistics

Threads
1,214,622
Messages
6,120,580
Members
448,972
Latest member
Shantanu2024

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