Outlook VBA (Visual Basic for Applications) refers to programming Outlook's native object model using Outlook's implementation of VBA. Since Outlook has no macro recorder, this tag is for questions about writing VBA from scratch and interacting with the object model programmatically.

learn more… | top users | synonyms

0
votes
1answer
14 views

Can't retreive value from ItemProprieties outlook : Operation failed

another problem that I can't figure out, once again. I'm retreiving a custom proprieties previously added by my code in an MailItem. I'm currently testing with outlook 2010, it's as straightforward as ...
0
votes
3answers
22 views

Delete a mailitem permanently in outlook

I'm trying to delete a mailitem using the outlook API. Like the following, Dim objMail For each objMail in objFolder.Items objMail.Delete Next Obviously, deleting an item straight away is to ...
0
votes
1answer
10 views

mailitem.Save The operation cannot be completed because the objct has been deleted

I'm trying to make a copy of a mailitem, move the copy to a different location and add a custom item property to it. But after I add the custom property, the item wont save and crash with the error ...
2
votes
1answer
64 views

How do I make Outlook purge a folder automatically when anything arrives in it?

I hope it's okay to ask this kind of question. Attempting to write the code myself is completely beyond me at the moment. I need a macro for Outlook 2007 that will permanently delete all content of ...
4
votes
1answer
89 views

How can I silently decline a meeting?

I've currently got a script that I tie to a rule so that I can auto-decline meeting requests with certain subjects: Sub AutoDeclineMeetings(oRequest As MeetingItem) If oRequest.MessageClass <> ...
0
votes
0answers
63 views

In VB,but how do I say in VBA

How do I use this code in VB? I am trying to create a macro when a email comes in from an email chain (distribution list). I found this code but I can't use it in VBA. Private Sub ...
0
votes
1answer
25 views

Outlook copy a mailitem to another folder

I'm trying to copy a MailItem inside a mailbox into another folder of a different mailbox with vbscript. Here's my Code 'Example \\Mailbox1\folder\mail item to \\Mailbox2\Folder\mail item For Each ...
0
votes
0answers
63 views

MS Access / Outlook 2010 - how to choose which account to send email from?

I am trying to send emails from a specific account but it always sends from my main no matter how much code I try or what I do. Is there any way to tell it to send it from a particular account? I am ...
0
votes
1answer
26 views

VBA Outlook Item Move

I have hacked the following piece of code together in Outlook 2007 VBA by judicious copying of others code from sites like this. I am not a programmer, so apologies in advance for any obvious ...
0
votes
1answer
15 views

Outlook-VBA: detecting openning a file event

Using either: Private Sub myInspector_NewInspectr(ByVal Inspector As Outlook.Inspector) or Application_ItemLoad(ByVal Item As Object) I need to find out if Inspector.CurrentItem or the Item ...
0
votes
0answers
13 views

Outlook VBA using ParseTextLinePair with an array

I am a VBA novice and that may be part of the the problem. However, I am working with Outlook messages and attempting to convert internal Sharepoint links to links that will use the public URL to ...
3
votes
0answers
118 views

Excel VBA sending mail using Outlook - Send method fails

I have been trying to find a solution to this for two hours now: I use this code to send an email from excel: Sub Mail_workbook_Outlook_1() 'Working in Excel 2000-2013 'This example send the last ...
-1
votes
0answers
20 views

Send unencrypted Self mail

The office outlook that we have in our office by default sends encrypted mails. However, for achieving a particular functionality I need to send mails to my inbox(Mail to Self) and I want them to be ...
0
votes
0answers
23 views

VBA script to save email attachments as individual emails in outlook itself

Am very new to VBA and looking for some help regarding macro which can copy email attachments which are emails itself as individual emails within outlook. Any pointers or suggestions on this topic ...
0
votes
1answer
68 views

Warn before sending emails to external domains in Outlook

How can you get Outlook to warn you if you are about to send and email to an external domain? Sending large amounts of emails everyday it is always possible to incorrectly send one to the wrong ...

1 2 3 4 5 29
15 30 50 per page