S
Steve Lloyd
I am trying to return multiple cell values from a single worksheet function
but when i specify the cell value I get an error.
Can anyone tell me if this is possible and guide me in the right direction.
example function is below:
Public Function ReturnValues() As Variant
On Error GoTo Err_Values
ActiveCell.Offset(1, 0).Value = 12
ReturnValues = 11
Exit Function
Err_Values:
MsgBox Err.Description
End Function
but when i specify the cell value I get an error.
Can anyone tell me if this is possible and guide me in the right direction.
example function is below:
Public Function ReturnValues() As Variant
On Error GoTo Err_Values
ActiveCell.Offset(1, 0).Value = 12
ReturnValues = 11
Exit Function
Err_Values:
MsgBox Err.Description
End Function