This short example function returns two values and I want to color one of the cells. Can anyone help me with a solution on how to do the coloring?
Function test() As Variant
Dim x As Variant
ReDim x(1 To 1, 1 To 2)
x(1, 1) = 1
x(1, 2) = 2
'ActiveCell.Interior.ColorIndex = 3
ActiveCell.Offset(0, 1).Interior.ColorIndex = 3
test = x
End Function