Dim ws As New NotesUIWorkspace
Dim newDoc As notesdocument
Dim newUIdoc As notesuidocument
Set newUIdoc = ws.composeDocument("","","newDoc")
Set newDoc = newUIdoc.document 'This will get handle on document to allow manipulation
次に、文書のフォームのPostopenイベントに、以下を追加します。
Sub Postopen(Source As Notesuidocument)
Dim doc As NotesDocument
Set doc = Source.Document
End Sub
Sub Postopen(Source As Notesuidocument)
Dim doc As NotesDocument
Set doc = Source.Document
Dim createDate As Variant
createDate = doc.Created
Messagebox (createdate)
End Sub