我堅持這個問題好幾天Lotus Notes中VBA
我要讀Lotus Notes中一個特定的郵箱,並把所有的內容到excel電子表格
但到目前爲止,我只能夠讀取默認收件箱並且無法切換到其他郵箱。我是真正的新VBA任何一個可以幫助我整理了這一點
這裏是我的代碼'使用
Set NSession = CreateObject("Notes.NotesSession")
'get the name of the mailfile of the current user
DbLocation = NSession.GETENVIRONMENTSTRING("mail/mailbox", True)
'Get the notesdatabase for the mail.
Set NMailDb = NSession.GETDATABASE("mailboxer", DbLocation)
MsgBox (DbLocation)
我得到一個空的msgbox坡平了