I have a public function in a class module but this function returns a value of a user defined type. This causes a error saying that it's not possible to have a user defined type as a parameter of a public method.

Why is it not possible to have a user defined type in a class module without having to declare the function as private? I want this function to be exposed. The function header is as follows:

Public Function GetRGB(RGBValue As Long) As RGBTRIPLE