outlook-2003

Getting messageID from email in Outlook VBA 2003

我们两清 提交于 2019-12-19 09:24:31
问题 Is there a easy way to get the current shown (preferably selected) message-ID via VBA ? without having to buy Redemption or some other package.. I need to message ID so I can make a link to a web-application that reads the mail and does some other stuff with it Can't seem to use MAPI or PropertyAccessor in outlook 2003.. 回答1: Do you mean the unique ID for the message? Try the EntryID Property: ActiveExplorer.Selection.Item(1).EntryID FYI PropertyAccessor was added in Outlook 2007, you wouldn

How do I create and send appointments to Microsoft Outlook calender?

半城伤御伤魂 提交于 2019-12-18 16:41:39
问题 I am trying to create an appointment in the Microsoft Outlook (2003) calender of another person using the below code.While running this program, The Appointment is getting saved in my calender.But not being sent to the recipient. try { Microsoft.Office.Interop.Outlook.Application app = null; Microsoft.Office.Interop.Outlook.AppointmentItem appt = null; app = new Microsoft.Office.Interop.Outlook.Application(); appt = (Microsoft.Office.Interop.Outlook.AppointmentItem)app .CreateItem(Microsoft

Unable to cast COM object - Microsoft outlook & C#

强颜欢笑 提交于 2019-12-17 18:28:11
问题 I have written this code to view the unread items in my outlook mail box and here is the code: Microsoft.Office.Interop.Outlook.Application app; Microsoft.Office.Interop.Outlook.Items items; Microsoft.Office.Interop.Outlook.NameSpace ns; Microsoft.Office.Interop.Outlook.MAPIFolder inbox; Microsoft.Office.Interop.Outlook.Application application = new Microsoft.Office.Interop.Outlook.Application(); app = application; ns = application.Session; inbox = ns.GetDefaultFolder(Microsoft.Office.Interop

When is a MailItem not a MailItem? [closed]

为君一笑 提交于 2019-12-17 16:44:35
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed last year . I have written a message handler function in Outlook's Visual Basic (we're using Outlook 2003 and Exchange Server) to help me sort out incoming email. It is working for me, except sometimes the rule fails and Outlook deactivates it. Then I turn the rule back on and manually run it on my Inbox to catch up. The rule

Can I read an Outlook (2003/2007) PST file in C#?

こ雲淡風輕ζ 提交于 2019-12-17 04:11:17
问题 Is it possible to read a .PST file using C#? I would like to do this as a standalone application, not as an Outlook addin (if that is possible). If have seen other SO questions similar to this mention MailNavigator but I am looking to do this programmatically in C#. I have looked at the Microsoft.Office.Interop.Outlook namespace but that appears to be just for Outlook addins. LibPST appears to be able to read PST files, but this is in C (sorry Joel, I didn't learn C before graduating). Any

Macro VBA to get selected text in Outlook 2003

拥有回忆 提交于 2019-12-14 03:57:57
问题 I am trying to use this code snippet to get the selected text in outlook 2003 Sub SelectedTextDispaly() On Error Resume Next Err.Clear Dim oText As TextRange ''# Get an object reference to the selected text range. Set oText = ActiveWindow.Selection.TextRange ''# Check to see whether error occurred when getting text object ''# reference. If Err.Number <> 0 Then MsgBox "Invalid Selection. Please highlight some text " _ & "or select a text frame and run the macro again.", _ vbExclamation End End

How to get Outlook 2003 accounts list using Outlook 2003 object model

廉价感情. 提交于 2019-12-12 04:09:06
问题 Is it possible to get list of all existing accounts from Outlook 2003 using only standard COM? It means I can't use Redemption library, but only default Outlook 2003 object model . It's much easy to get accounts at Outlook 2007/2010: dynamic outlook = AutomationFactory.GetObject("Outlook.Application"); var accounts = outlook.Session.Accounts; But there is no "Accounts" property for Outlook 2003. By default I can access only default account using "CurrentUser" property. So maybe is there some

Extracting specific information from Outlook 2003 to Excel using VBA

南笙酒味 提交于 2019-12-11 22:57:44
问题 So firstly, I'm very new to VBA and due to the number of emails I get that follow a certain template, I'm trying to automate the data collation to save myself from all the cutting and pasting that is currently required. I've looked at some previous questions but due to my very little knowledge, the answers aren't specific enough for me to understand. Each one of these emails is from a particular email address and has a standard format as shown below: " dd/mm/yyyy hr.min.sec xxx xxxxxxx

My Outlook context menu (add-in) button fires multiple times per one click

China☆狼群 提交于 2019-12-11 12:22:27
问题 So I've got this context menu working out except that the event behind the actual selection of the menu item seems to fire multiple times. First time I click it, it fires once, then twice, then 3 times. So, in the example I just gave, for 3 clicks it would have fired a total of 6 times (1 + 2 + 3). Why is that? Below is my code on how I'm creating the menu items. I stripped it down to the relevant pieces; I omitted things like .Tag, .Visible, and .Caption properties. I'm building this using

Move outlook mail from one mailbox inbox to different folder in same mailbox

人盡茶涼 提交于 2019-12-11 09:19:46
问题 I have several mailboxes which I can see in my Outlook profile. One of the mailboxes, let's call it "Mailbox - HUR" receives messages constantly. presently one of my team goes into the inbox of this mailbox every day and moves (drag and drop) the messages into a subfolder of the inbox called Archive (we're an imaginative lot!) if the messages are greater than 24 hours old. Is there any way that a macro can be set up to do this task? I know my simple way around VBA but have never used it with