title: Lotus Notes Cannot Get subject from .Value or ColumnValues '451 Error
body: <p>I seem to be getting the same &quot;'451 Property let procedure not defined and property get procedure did not return an object&quot; run time error when trying to get the subject of my emails from Lotus Notes. I have tried by using both <code>GetFirstItem(&quot;subject&quot;)</code> as well as <code>ColumnValues(5)</code> but both drop the same error.</p>
  <p>The below is the <code>GetFirstItem</code> method, <code>NSubject</code> in this case does hold the variable Values(0) with the subject line captured correctly. I just can't seem to figure out how to pull it and use it.</p>
  <pre><code>Sub Test_subject()
  
  Dim NSession As Object
  Dim NMailDb As Object
  Dim NFolder As Object
  Dim NView As Object
  Dim NDocument As Object
  Dim NSubject As Object
  Dim NItem As Variant
  
  Set NSession = CreateObject(&quot;Lotus.NotesSession&quot;)
  Call NSession.Initialize(&quot;password&quot;)
  
  Set NMailDb = NSession.GetDatabase(&quot;Server&quot;, &quot;Directory&quot;)
     If Not NMailDb.IsOpen = True Then
     Call NMailDb.Open
  End If
  
  Set NFolder = NMailDb.GetView(&quot;($Inbox)&quot;)
  Set NView = NFolder.CreateViewNav()
  
  Set NDocument = NView.GetLastDocument
  Set NItem = NDocument.Document
  Set NSubject = NItem.GetFirstItem(&quot;subject&quot;)
     MsgBox (NSubject.Values(0))
  End Sub
  </code></pre>
  <p>Changing to <code>.ColumnValues(6)</code> which contains the correct value also drops the same error. I'm clearly not understanding something but I'm not sure where I'm going wrong.</p>
  <pre><code>Set NDocument = NView.GetLastDocument
  NItem = NDocument.ColumnValues(6)
  </code></pre>