简体   繁体   English

Lotus Notes 在处理 excel vba 发送大量电子邮件时自动设置注销

[英]Lotus notes set logout automatically when processing excel vba sending lots of email out

My computer and Lotus notes will be on together.我的电脑和 Lotus Notes 将放在一起。 I have the excel vba open the lotus notes for sending some emails out automatically.我有 excel vba 打开 Lotus Notes 以自动发送一些电子邮件。

However the lotus notes was set to be logout every half an hour and i need to login again with password which my program was frequently interrupted before the job finished.然而,莲花笔记设置为每半小时注销一次,我需要使用密码再次登录,我的程序在工作完成之前经常被中断。 What can I do in this condition?在这种情况下我能做什么?

Since your code is dependent on being logged into Notes, I'm assuming you are using the Notes OLE classes. 由于您的代码取决于登录到Notes,因此我假设您正在使用Notes OLE类。 Ie, you've got VBA set up to use the "Lotus Notes Automation Classes": Notes.NotesSession, Notes.NotesDatabase, etc. 即,您已经设置了VBA以使用“ Lotus Notes自动化类”:Notes.NotesSession,Notes.NotesDatabase等。

You should be using the "Lotus Notes Domino Objects", which are COM classes instead of OLE classes. 您应该使用“ Lotus Notes Domino对象”,它们是COM类而不是OLE类。 Note the different prefix for these classes: Lotus.NotesSession, Lotus.NotesDatabase, etc. 请注意这些类的不同前缀:Lotus.NotesSession,Lotus.NotesDatabase等。

The OLE classes actually drive the code in the running Notes client, so they require that it is running (they will start it if it's not), and logged in. The OLE classes go around the client and just use the instelled Notes DLLs, so the client does not have to be running and you don't have to be logged into it. OLE类实际上在正在运行的Notes客户端中驱动代码,因此它们要求代码正在运行(如果未运行,它们将启动它)并登录。OLE类在客户端周围运行,仅使用插入的Notes DLL,因此客户端不必运行,您也不必登录。 Instead, your own code will have to authenticate. 相反,您自己的代码将必须进行身份验证。 There are several ways that can happen, but usually it just means that when you run your VBA it will prompt you for your Notes password. 可以通过多种方式进行,但是通常这仅意味着在您运行VBA时,它将提示您输入Notes密码。 It will authenticate only once, at the beginning of the run, regardless of the client's configured time-out. 无论客户端配置的超时时间如何,在运行开始时它将仅进行一次身份验证。

You can open the Notes client software and set the user-session timeout value (or disable it).您可以打开 Notes 客户端软件并设置用户会话超时值(或禁用它)。 Goto:去:

File, Security, User Security, then on the 'security basics' tab look for 'Automatically lock my notes ID after' X seconds.文件、安全、用户安全,然后在“安全基础”选项卡上查找“X 秒后自动锁定我的笔记 ID”。 (a value of 0 may disable it?). (值为 0 可能会禁用它?)。

You need to use the same user-id used for VBA access.您需要使用用于 VBA 访问的相同用户 ID。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM