Public Function List(Optional msgid As Integer) As Variant[] it can be a string[] or a class array if you know the return structure Public Function UniqueID(Optional msgid As Integer) As Variant[] well i'm not sure that a variant[] is the good answer for all :/ maybe a class array can be better ?