I'm trying to return the value of a cell in an Excel spreadsheet, but it just shows "False" instead of the value of the cell.
Here's the function:
Function GenSelectStatement() As String
Dim retstring As String
Dim i As Integer
retstring = Cells(1, 2).Select
MsgBox "restring: " & Cells(2, 2).Select
GenSelectStatement = retstring
End Function
The cell in question has an alpha value like "xxx".
Both the msgbox display and the cell where the function is coded show "FALSE".
What am I doing wrong?