outlook

want to hide bcc field in outlook 2010 email using vba

岁酱吖の 提交于 2020-01-16 01:22:02
问题 I'm trying to hide the Bcc field in an email that's currently being drafted in Outlook 2010 using VBA. The reason to hide it is that I'm using code to add an email address to Bcc which shows the field, but then I want the real-estate on the screen back. Here's what I have so far (in ThisOutlookSession): Sub add_bcc_to_cur_email() Dim cur_msg As MailItem Set cur_msg = ActiveInspector.CurrentItem cur_msg.BCC = "first.last@domain.com" 'this works correctly cur_msg.GetInspector.CommandBars

How to get all addresses of a recipient in Outlook using .Net/C#

点点圈 提交于 2020-01-16 00:36:10
问题 I am trying to get all the email Ids that belong to a person in Outlook. When I look at a contacts properties in Outlook, I can see several email addresses listed - SIM, SMTP and smtp. Is there a way to get all of these? I know how to get the primary email address using: recipient.AddressEntry.GetExchangeUser().PrimarySmtpAddress which always seem to give the email address marked "SMTP". I want "smtp" and "SIP" email addresses too. This is Outlook 2010 connected to Exchange server and all

How to read Custom Field value of outlook

纵饮孤独 提交于 2020-01-15 18:51:34
问题 Can anyone tell me how to read the custom Field value of the outlook using c# Right now i tried "UserProperties" and "ItemProperties". Both are throwing error. My sample code as follows Microsoft.Office.Interop.Outlook.Application f = new Microsoft.Office.Interop.Outlook.Application(); NameSpace outlookNS = f.GetNamespace("MAPI"); MAPIFolder inboxFolder = outlookNS.GetDefaultFolder(OlDefaultFolders.olFolderInbox); foreach (object obj in inboxFolder.Items) { MailItem item = obj as MailItem; if

Is there any way to get the date time on the “you replied to this message on [xxx]”?

血红的双手。 提交于 2020-01-15 16:27:17
问题 I am trying to do a email export from outlook to excel macro which includes the recipient, email subject and most importantly the date time of email reply. I have tried searching for the list of mail item properties. Besides .LastModificationTime , I cant seem to find any property closer to the exact date time on the "you replied to this message on [xxx]" 回答1: You need PR_LAST_VERB_EXECUTION_TIME (DASL name is http://schemas.microsoft.com/mapi/proptag/0x10820040 ), it can be accessed using

VBA Macro Selected Text Outlook 2010

这一生的挚爱 提交于 2020-01-15 15:38:09
问题 I have a macro i wrote in vba to get selected text in an email message and for now show it in a MsgBox. This works great when i run the macro with selected text in an email message with the email message opened in its own window. when i try this with the text selected in the email pane of the main outlook program it gives me an error "Object variable or With block variable not set" this is coming from the "Set insp" line any ideas? Sub showseltext() Dim msg As Outlook.MailItem Dim insp As

Switch To Outlook Calendar using VSTO

混江龙づ霸主 提交于 2020-01-15 10:59:04
问题 I have a CustomTaskPane that I have added to Microsoft Outlook 2013. This pane includes a WPF Calendar control that when double clicked I would like it to switch from the current Outlook view (Mail) to the Calendar view and go to the date selected in the control. Here is the code I am using: private void TopCalendar_MouseDoubleClick(object sender, MouseButtonEventArgs e) { CalendarView calView = null; Explorer explorer; DateTime goToDate = (TopCalendar.SelectedDate.HasValue) ? TopCalendar

Html email align text and image

£可爱£侵袭症+ 提交于 2020-01-15 10:33:53
问题 I'm having trouble aligning an image with text. The problem only occurs in outlook 03,07 & 10. See this picture to get a better understanding of my problem: This is my code: <td valign="middle" style="color:#fff; font-size:18px; padding-left:3%;" width="600" height="34" bgcolor="#1a292f"> <span class="nonmobile_content"> Onsdag </span> <span style="font-weight: bold"> 21.03 </span> <span style="color:#87bcd8;"> 2013 </span> <span style="color:#87bcd8;"> uke 11 </span> <span> <img src=

Copy email subject in outlook to excel using vba with two email address?

社会主义新天地 提交于 2020-01-15 09:47:14
问题 I have two email address. The first is address1@domain.com.vn and the second is address2@domain.com.vn . I want to copy email subject in microsoft outlook with second address address2@domain.com.vn to excel using vba. I use bellow code but it do not work. Sub GetFromInbox() Dim olapp As Outlook.Application Dim olNs As Namespace Dim Fldr As MAPIFolder Dim olMail As Variant Dim Pst_Folder_Name Dim MailboxName 'Dim date1 As Date Dim i As Integer Sheets("sheet1").Visible = True Sheets("sheet1")

Capture the event while moving the mail from subfolder to inbox

白昼怎懂夜的黑 提交于 2020-01-15 08:43:05
问题 I have the requirement to capture the event when the mail is moved from Subfolder to Inbox The folder structure is as below myarchive-mailbox name Inbox Main folder requests Sub folder myarchive Inbox requests When the email is moved from requests subfolder to Inbox, of myarchive mailbox Name ,this mailbox item should be captured and the event handler should be invoked. I have already implemented the code for capturing the event when the file is moved from myarchive inbox to requests.The code

Outlook email subject only updating after loosing focus

℡╲_俬逩灬. 提交于 2020-01-15 04:52:05
问题 I have a same question as Bryan had in thread Outlook 2007 Add-In - subject only updates after losing focus ... I am using vsto for outlook programming, i am using button controls of outlook ribbon bar on a compose mail window, the button creates a work item from email for tfs, the work item uses subject of an email for its title field.. Now the problem occurs here when i update the subject of an email and clicks the button on Ribbon bar the work item is created with the old value of subject