Outlook Express [英] Outlook Express
问题描述
有没有办法,从Access,以编程方式点击Outlook中的发送和
接收按钮?
Is there a way, from Access, to programmatically click the Send and
Receive button in Outlook?
推荐答案
2006年3月2日星期四17:03:36 -0600,Tom Becker
< wl ********** **@hotmail.com>写道:
获取该按钮的窗口句柄,并发送(PostMessage)它一个
WM_CLICK消息。
为什么不要你告诉我们你们真正想做什么。也许发送电子邮件?
DoCmd.SendObject怎么样?
-Tom。
On Thu, 02 Mar 2006 17:03:36 -0600, Tom Becker
<wl************@hotmail.com> wrote:
Get the Window Handle of that button, and send (PostMessage) it a
WM_CLICK message.
Why don''t you tell us what you really want to do. Send emails perhaps?
How about DoCmd.SendObject?
-Tom.
<是否有一种方法,从Access,以编程方式单击Outlook中的发送和
接收按钮?
Is there a way, from Access, to programmatically click the Send and
Receive button in Outlook?
Tom Becker写道:
Tom Becker wrote:
有没有办法,从Access,以编程方式单击Outlook中的发送和
接收按钮?
Is there a way, from Access, to programmatically click the Send and
Receive button in Outlook?
TB,这是大约五年前的A2K mdb代码片段,用于
普通Outlook 2K:
''发送/接收
设置MyExplorer = objOutlook.ActiveExplorer
MyExplorer.Activate
MyExplorer.WindowState = olMaximized
设置MyMenuBar = MyExplorer.CommandBars.Item(" ;标准)
设置MyMenuBarControl = MyMenuBar.Controls.Item(" Send / Re& ceive)
MyMenuBarControl.Execute
Set MyMenuBar = Nothing
有些D我是:
Dim MyExplorer作为资源管理器
Dim MyMenuBar As CommandBar
Dim MyMenuBarControl As CommandBarControl
Dim objOutlook作为Outlook.Application
这需要一个Outlook对象库的引用集。在我注意到Express这个词之前,我挖出了这个例子的
。在你的主题行
但它可能会给你一些想法。请注意,Outlook比Outlook Express更容易实现自动化。
James A. Fortune
CD ******** @ FortuneJames.com
T.B., here is an A2K mdb code snippet from about five years ago for
plain Outlook 2K:
''Send/Receive
Set MyExplorer = objOutlook.ActiveExplorer
MyExplorer.Activate
MyExplorer.WindowState = olMaximized
Set MyMenuBar = MyExplorer.CommandBars.Item("Standard")
Set MyMenuBarControl = MyMenuBar.Controls.Item("Send/Re&ceive")
MyMenuBarControl.Execute
Set MyMenuBar = Nothing
Some Dim''s:
Dim MyExplorer As Explorer
Dim MyMenuBar As CommandBar
Dim MyMenuBarControl As CommandBarControl
Dim objOutlook As Outlook.Application
This needs a reference set to the Outlook Object library. I dug up
this example before I noticed the word "Express" in your subject line
but it may give you some ideas. Note that Outlook is easier to
automate than Outlook Express.
James A. Fortune
CD********@FortuneJames.com
On Thu, 2006年3月2日22:06:11 -0700,Tom van Stiphout
< no ************* @ cox.net>写道:
On Thu, 02 Mar 2006 22:06:11 -0700, Tom van Stiphout
<no*************@cox.net> wrote:
2006年3月2日星期四17:03:36 -0600,Tom Becker
< wl ************ @ hotmail.com>写道:
获取该按钮的窗口句柄,并发送(PostMessage)它一个
WM_CLICK消息。
为什么不告诉我们你真正想做什么。也许发送电子邮件?
DoCmd.SendObject怎么样?
-Tom。
你能告诉我更多关于按钮的窗口句柄和WM_CLICK的信息吗?
我使用的是DoCmd.SendObject,但有时候它会在
Outlook中的发件箱。我想确保它通过点击
发送和接收立即发送电子邮件。
On Thu, 02 Mar 2006 17:03:36 -0600, Tom Becker
<wl************@hotmail.com> wrote:
Get the Window Handle of that button, and send (PostMessage) it a
WM_CLICK message.
Why don''t you tell us what you really want to do. Send emails perhaps?
How about DoCmd.SendObject?
-Tom.
Can you tell me more about Window Handles of buttons and WM_CLICK?
I use DoCmd.SendObject but sometimes it''s sits in the Outbox in
Outlook. I want to make sure it sends the email right away by clicking
Send and Receive.
是有一种方法,从Access,以编程方式单击Outlook中的发送和
接收按钮?
Is there a way, from Access, to programmatically click the Send and
Receive button in Outlook?
这篇关于Outlook Express的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!