outlook-2003

Shared code between two outlook VSTO addins

We have a situation where we will have two VSTO Outlook add-ins which both start off with some common shared code, but the shared code will probably diverge over time. Ideally, we'd like to restructure the add-ins to factor out the common code into a separate shared dll, but for non-technical reasons this is not an option right now. What...

Accessing an Access DB from Outlook via VBA

Hi The situation: In Outlook I get a message from a server. The content of the message needs to be put into an Access db. But, there may not exist another message with the same date. So, I need to look into a db if there is already a message with the same date and time. If there exists one, then it needs to be replaced and otherwise th...

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

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 m...

Can I use VBA to unzip a file using the native windows unzip feature?

I'm using Outlook 2003 & I want to use a macro to unzip a file attachment on a message. Can I use the built-in zip file handling of windows in VBA to do this and if so, how? I'm running on Windows7 64 bit. ...

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

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.Appo...

Hide the built-in Send button in Outlook 2003

I am using ms-outlook 2003, i want to hide the built-in send button and use the custom button to send the mail. As i have worked on C,C++ and on Java, dont know how to work on VB/VBScript/VBA, can any body tell me how to hide this button and also how to send mail from custom button, how to access the fields of mail (ie., the TO field, S...

Why does my VSTO Outlook Add-In hang on first run?

I've written this little MS Outlook 2003 VSTO Add-In using C# and Visual Studio 2008. It is meant to check each Mail Item being sent for the word "attach" in the body and if found, then check the number of attachments. If that number is zero, then ask the user if they really mean to send the message. It's supposed to work like the Gmail ...

Can I add a web page to an e-mail message in Microsoft Outlook 2003?

How can we add a web page or a Windows Forms to the Outlook mail so that when I send a mail to a person he/she should be able to enter the data in the controls on the mail form? The user should also have the ability to save the data directly from the mail, instead of opening my web or a Windows application and update the data. ...

turn on and off word as email viewer through registry

My default outlook settings in the Mail Format tab has everything (check boxes and the combo for format) disabled for the Message Format section. Need some help on registry tweaks to enable them. Alternatively, a vb script to directly set the registry for these settings will also do. ...

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

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...

Sort Outlook Inbox "Arrange By" | Switch between FROM and Conversation View

Using VBA and a toolbar button, I'd like to be able to Switch between FROM and Conversation View, but I just can't work how to or find the code to do this. I tried the Sort Methods but, they only work in memory and don't re-sort the actual inbox. I use Conversation View for GMail style functionality with my Sent items BCC'd to myself, ...

The host 'smtp' could not be found.

I am getting the following error while sending mail by click of a button in MS access form I am using sendObject to send mail using vba code. The host 'smtp' could not be found. Please verify that you have entered the server name correctly. Account: 'pop3', Server: 'smtp', Protocol: SMTP, Port: 25, Secure(SSL): No, Socket ...

Outlook 2003 View Control with C#

I want to embed a custom c# windows form (or WPF) user control into an outlook view. I am using Outlook 2003 and Visual Studio 2008. I did download an example for Outlook 2007 here: http://blogs.msdn.com/e2eblog/archive/2008/01/09/outlook-folder-homepage-hosting-wpf-activex-and-windows-forms-controls.aspx and also here: http://msdn.m...

How can I clear the cache in an Outlook client programmatically?

I am executing the following routine often in order to clear the local cache of many Outlook clients (Outlook 2003) in order to fix corrupted Forms stored on the users local drive. On the Tools menu, click Options, and then click the Other tab. Click Advanced Options. In the Advanced Options box, click Custom Forms. In the Custom Fo...

Macro VBA to get selected text in Outlook 2003

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 w...

How to create Outlook's new mail window with attachement in ?

I'd like add to my app function allowing sending email via Outlook same as eg Adobe Reader does. So after pressing email button I'd like to see Outlook's native 'new mail' window with my document attached in. Any idea how to archive that? ...

Count the number of emails each day in Outlook 2003?

This is for a little pet project of mine. I want to write a program that does some email analytics and tells you the number of emails coming in and out each day, as well as your percentages. Really, all I need to do to kick this off is write a .Net app that can talk with Outlook and count the number of messages received and sent for gi...

Outlook Crashes with Event ID 1000

We deployed a VSTO addin for outlook 2003. After installing the addin one of the user's outlook crashes when a contact is opened, i.e, when ItemProperties of the contact are read.Some theses properties are read using MAPI.There is no exception being logged even though we have try/catch and logging in all methods. The event log has follo...

Does Outlook 2003 support task requests from Outlook 2007?

I use Outloop with IMAP (gmail). I have two gmail accounts and two PCs. On the fist one Outlook 2007 is installed, Outlook-2003 is on the second. A task request was created in Outlook-2007 and sent to the user. The user received this request in Outlook 2003. But it is not a task request. It's just a email with an attachement. So the user...

How can I get Outlook 2003 data in Silverlight 4 application

Is it possible to use Automation for Outlook 2003 with Silverlight 4? Or maybe there are some different way to use Outlook 2003 MAPI in Silverlight application? I'm using Silverlight 4 and I'm trying interact with Outlook in this way: dynamic outlook = AutomationFactory.GetObject("Outlook.Application"); For Outlook 2007/2010 all works...