メソッドOP_CHECK_BYVALの型が一致しません:STRINGが検出されましたが、Unknownが必要です
■エラー画面
■原因
・「doc.test(0)」と書くべきところを「doc.test」とした。
LotusScript VBA OUTLOOK Excelの覚書 各ツールやプログラムによる連携、エラー対処
Sub Click(Source As Button) Dim dt As New NotesDateTime("Today") Call dt.SetNow Messagebox dt.LocalTime End Sub
Sub Click(Source As Button) Dim dt As New NotesDateTime("Today") Messagebox dt.LocalTime End Sub
Sub Click(Source As Button) Dim session As New NotesSession Msgbox session.UserName End Sub
Sub Click(Source As Button) Dim workspace As New NotesUIWorkspace Dim uidoc As NotesUIDocument Dim doc As NotesDocument Set uidoc = workspace.CurrentDocument Set doc = uidoc.Document doc.test = "テスト" End Sub
Sub Click(Source As Button) Dim workspace As New NotesUIWorkspace Dim uidoc As NotesUIDocument Dim doc As NotesDocument Set uidoc = workspace.CurrentDocument Set doc = uidoc.Document Msgbox doc.test(0) End Sub