Export Notes Emails to word Document in Tabular Format--Need help

Hi All,

I have created a Word Documentnt , and I need to get the Date ---- Subject—From ---- Information of all the received emails in a Word Document.

How can I achieve this. Please help

Here is some initial code that I wrote,

Notes Agent Script that I wrote to start with

Sub Initialize

Dim ntNotes As NotesDocument

Dim path As String

Dim tempfield As Variant

path=“c:\tempwordexp.doc” ’ Put your MS Word file name and path here

Dim dbNotes As NotesDatabase

Dim ssNotes As New NotesSession

Dim vwNotes As NotesView

Dim wordObj As Variant

Set dbNotes = ssNotes.CurrentDatabase

Set vwNotes = dbNotes.Getview (“ViewName”) ’ Set ntNotes = vwNotes.GetFirstDocument

Do While Not (ntNotes Is Nothing)

Set wordObj = GetObject(path,“word.document”)

tempfield=ntNotes.NotesFieldName(0)

’ I got the Notes Document Field Name , What should I do next

I need all the values such as Date ----Subject—From in a tabular format (like a table) Each record is a single NotesDocument , for the next document, it should be in a text line.

wordObj.Save

wordObj.Application.Quit

Set wordObj = Nothing

Set ntNotes = vwNotes.GetNextDocument(ntNotes)

Loop

Set wordObj = Nothing

End Sub

Please help

Thanks in advance,

ac ac