In my excel sheet, I have a cell called su_callLog
.
My VBA code is:
Private Sub su_callLogCopy_Click()
CopyCell (Range("su_callLog")) 'Error Here
End Sub
Sub CopyCell(cell As Range)
MsgBox cell.Value
End Sub
I'm trying to use the function to process the info in that cell. Even when i try to merely print the contents of the Range, I get the VBA Run-time error '424' Object Required
error. I'm new to VBA. Please tell me what I'm doing wrong.
NOTE: MsgBox (Range("su_callLog"))
produces the expected results.