outlook-2010

How to Modify Properties (Time Zone) of Recurring Appointments in Outlook 2010 VBA

你离开我真会死。 提交于 2019-12-02 10:35:44
I am writing a new and revised version of a VBA Outlook macro that will go through all appointment's in a user's calendar and change every recurring series' time zone to Central Standard. No matter what I do, however, I cannot seem to get it to access the recurrence properly. At present, when I debug the macro it will fail the first time a call is made to ex.AppointmentItem.Subject (in the Debug.Print statement after the recurrence pattern rPattern is defined). The central question here is: how can I access and modify an entire series of recurring appointments at one time? Can I a) modify the

VBscript outlook form creating meeting in specific calendar

别说谁变了你拦得住时间么 提交于 2019-12-02 07:42:38
I've been working on this the past few days. My VBscript code works and will create a meeting in the default calendar in Outlook. The part I can't seem to figure out is how to have the meeting made in a custom calendar named "Test". This calendar is listed under "My Calendars". Any advice? Sub commandbutton1_Click() If CommandButton1 = False Then Const olFolderCalendar = 9 Const olAppointmentItem = 1 Const olOutOfOffice = 3 Set objOutlook = CreateObject("Outlook.Application") Set objNamespace = objOutlook.GetNamespace("MAPI") ' bottom line original: Set objCalendar = objNamespace

SentOnBehalfOf not working in Excel 2010 VBA Code

人走茶凉 提交于 2019-12-02 05:37:21
I am working on a VBA script for mailing through Outlook in Excel 2010. Everything runs fine with one exception: the .SentOnBehalfofName line will not work. Here is the complete code Sub Mail() ' Working in Office 2010-2013 Dim OutApp As Outlook.Application Dim OutMail As Outlook.MailItem Dim strbody As String ' This is for the Body of the email Dim signature As String ' This is for the email signature On Error Resume Next 'Set OutMail = Nothing 'Set OutApp = Nothing Dim sh As Worksheet Set sh = Sheets("Mail") strbody = sh.Range("C9").Value Set OutApp = CreateObject("Outlook.Application") Set

Download attachments from specific folder in Outlook

允我心安 提交于 2019-12-02 05:12:16
问题 I am not familiar with vba enough to modify this for my needs. I need to download the attachments from a specific folder. I found this example, but I am not sure how to get the folder where these emails are sent to. I have a rule that when these emails come in, it places them into a different folder. This where I want to run the macro so it only strips the attachments from these emails and places them on the local computer folder. What parts do I need to change to get this to work for my

Get named MAPI Property from MailItem in C#

时光毁灭记忆、已成空白 提交于 2019-12-02 02:56:40
问题 I'm developing an Outlook 2010 custom plugin in C#. This is my first time using C# (I'm a java guy normally). There is a named (custom) MAPI property on a message that I would like to access and am having trouble doing so. My understanding is that in Outlook 2007 the PropertyAccessor object was introduced which allows easy access to named MAPI properties. I followed the instructions from the following documentation: http://msdn.microsoft.com/en-us/library/ff868915.aspx I can see the named

Download attachments from specific folder in Outlook

耗尽温柔 提交于 2019-12-02 02:38:13
I am not familiar with vba enough to modify this for my needs. I need to download the attachments from a specific folder. I found this example , but I am not sure how to get the folder where these emails are sent to. I have a rule that when these emails come in, it places them into a different folder. This where I want to run the macro so it only strips the attachments from these emails and places them on the local computer folder. What parts do I need to change to get this to work for my needs? Public Sub SaveAttachments(Item As Outlook.MailItem) If Item.Attachments.Count > 0 Then Dim

Outlook 2013 'Run a script' rule has disappeared

南笙酒味 提交于 2019-12-02 00:20:08
问题 I have some rules for work in outlook 2013 - however following my laptop crashing the other day, I can no longer run any rules, they simply do not work (I don't even get a debug notification). Upon checking my macros, I found that when I tried to click on any scripts I have and I keep getting the message 'This action is not available in the current mode'. The option to create a new script has disappeared from the rule list too. So far I have tried: -Using the outlook 2016 fix by running the

How to show on front (and not on background) a new email form in Outlook with OLE?

◇◆丶佛笑我妖孽 提交于 2019-12-01 23:39:08
问题 I am using OLE with Delphi to communicate from my delphi app to Outlook. I am opening the new email form in Outlook using the following code. The problem is that the form is on background, so if the form from which I am generating the email form is maximized it will "cover" the Outlook new mail form. How can I make that form appear it on top? (not "sticking on top", but simply that it appears on top, then a user can mimimize it if they want). This is the code: try OutlookApp :=

Extract Email address from a table in .HTMLbody

我的未来我决定 提交于 2019-12-01 22:18:19
I would like to reply to a webform extracting the email address from the form. The webform is in a table, thus the ParseTextLinePair() function returns blanks as the email address in the column next to the label. How can I extract the email address from a webform? Sub ReplywithTemplatev2() Dim Item As Outlook.MailItem Dim oRespond As Outlook.MailItem 'Get Email Dim intLocAddress As Integer Dim intLocCRLF As Integer Dim strAddress As String Set Item = GetCurrentItem() If Item.Class = olMail Then ' find the requestor address strAddress = ParseTextLinePair(Item.Body, "Email-Adresse des

Outlook 2013 'Run a script' rule has disappeared

时间秒杀一切 提交于 2019-12-01 22:08:11
I have some rules for work in outlook 2013 - however following my laptop crashing the other day, I can no longer run any rules, they simply do not work (I don't even get a debug notification). Upon checking my macros, I found that when I tried to click on any scripts I have and I keep getting the message 'This action is not available in the current mode'. The option to create a new script has disappeared from the rule list too. So far I have tried: -Using the outlook 2016 fix by running the registry fix DWORD 1 (There is nothing out there for 2013). I have restarted my Pc and it still has not