simple(?) VBA help

simple(?) VBA help

I am getting the message "Encountered error at line 9 :Invalid arguments: Object required" when I try to run the macro below, which I copied from  http://www.mrexcel.com/forum/showpost.php?s=4ab5add6c1156e7e667e8fe62208e2e3&p=266170&postcount=3.  Can anyone explain why?

Public Sub main()
Dim oRange As Range
Dim oComment As Comment
Dim sText As String

'Use object variable to hold range. In this example Sheet1 Cell A1
Set oRange = Sheets("Sheet1").Range("A1")
'Use object variable for comment
Set oComment = oRange.Comment
'text to be added to the comment box
sText = "Hello"

'If Sheet1 Cell A1 has a comment then append "Hello" to the end of the comment text
If Not oComment Is Nothing Then
sText = oComment.Text & sText
oRange.Comment.Delete
End If

'Add a comment with the contents of sText
oRange.AddComment sText
End Sub