title: Adding a comment to a excel using VBA
body: <p>I'm having real difficulties adding a comment to a cell.</p>
  
  <p>I'm calling the following sub</p>
  
  <pre><code>Sub ValidationError(row As Long, column As Integer, ErrorLine As String)
  
  Tabelle1.Cells(row, column).Interior.Color = vbYellow
  Tabelle1.Cells(row, column).AddComment ErrorLine
  
  End Sub
  </code></pre>
  
  <p><strong>But I always get a 1004 error, saying "Application or object error" (this is translated, original message: "Anwendungs- oder objektdefinierter Fehler")</strong></p>
  
  <p>The sub is called using </p>
  
  <pre><code>Call ValidationError(8, 9, "Text string")
  </code></pre>
  
  <p>What am I doing wrong?</p>
  
  <p>Best</p>