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
 

Hap

Well-known Member
Joined
Jul 20, 2005
Messages
647
The new error is in the CornerSort = UnSorted line of the function.

"Object variable or with block variable not set"
 

Some videos you may like

Excel Facts

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.

Hap

Well-known Member
Joined
Jul 20, 2005
Messages
647
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.
 

Norie

Well-known Member
Joined
Apr 28, 2004
Messages
76,216
Office Version
  1. 365
Platform
  1. Windows
I'm no expert on this type of thing but perhaps you need Set.
Code:
Set CornerSort = UnSorted
 

Hap

Well-known Member
Joined
Jul 20, 2005
Messages
647
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"
 

Watch MrExcel Video

Forum statistics

Threads
1,122,352
Messages
5,595,655
Members
414,006
Latest member
Davefromlondon

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
Top