I am attempting to figure out how to fill a range of cells with values using a VBA function. Using the Value property does not work for any reason. The code below depicts my current idea:
Public Function funcA(CellRange as Range)
CellRange.Value = "MY_VALUE"
funcA = "OK"
End Function
where 'CellRange' is the range in the sheet, which should be filled with the result.
Any idea how to achieve this?
Many thanks for your help
Public Function funcA(CellRange as Range)
CellRange.Value = "MY_VALUE"
funcA = "OK"
End Function
where 'CellRange' is the range in the sheet, which should be filled with the result.
Any idea how to achieve this?
Many thanks for your help