ThreadLast AuthorMessages
read/total
Date
Assigning a Task to another user does seem to work
JP
2 / 2 20 Nov 2007
This code worked for me. Sub CreateNewTask() Dim ol As Outlook.Application Dim NewTask As Outlook.TaskItem Dim recip As Outlook.Recipient Set ol = New Outlook.Application ' or createobject("Outlook.Application") Set NewTask = ol.CreateItem(olTaskItem) NewTask.Assign Set recip = NewTask.Recipients.Add("Drug_Projects_Queue@sterlingtesting.com") recip.Resolve If recip....
Redemption MAPITable Question
Dmitry Streblechenko
9 / 9 20 Nov 2007
Since System32 is in the PATH, regsvr32.exe redemption.dll will register the dll in System32. Specify fully qualified path when registering with regsvr32.exe: regsvr32.exe "c:\program files\redemption\redemption.dll" Dmitry Streblechenko (MVP) http://www.dimastr.com/ OutlookSpy - Outlook, CDO and MAPI Developer Tool "Patrick Pirtle" <pap at mka dot com> wrote in message...
Retrieving 'Alias' field value using Outlook 2003 VBA
Ajith
5 / 5 15 Nov 2007
Ken, I passed Alias in the CreateRecipient method and it worked just fine!!!! :-) Thank you so much for your tip!! "Ken Slovak - [MVP - Outlook]" wrote: > There is no Alias property for an AddressEntry object. > > If by alias you mean something like "Ken Slovak" has the alias of "kens" > then you need to create a Recipient object using the alias and retrieve the > AddressEntry...
Need help searching for "\\192" in body of new email
JP
5 / 5 14 Nov 2007
Great job! Split or Instr or even Find would help. You could use "Instr" on Item.Body to get the position of the "\\192" then the Mid$ function to return the exact string you want, starting from the position of "\\192" in the email body. --JP On Nov 14, 9:51 am, mikedavi...@HOTMAIL.COM wrote: > Here's the solution. I just did it myself. It basically will take a > string (mailitem....
redemption SAfeMailItem.Send - what are error return codes?
Dmitry Streblechenko
2 / 2 14 Nov 2007
Just like MailItem.Send in OOM, it does not return anything, but it does raise a COM error that yoou can capture in VB using On error resume next ... Err.Number / Err.Description Dmitry Streblechenko (MVP) http://www.dimastr.com/ OutlookSpy - Outlook, CDO and MAPI Developer Tool <gurzuf@rogers.com> wrote in message news:1195003051.429171.103010@v2g2000hsf.googlegroups.com... >...
Connecting to Exchange using .Net
DavidE
5 / 5 13 Nov 2007
Hi ken, Seem that I have to learn about the webDav which I never heared before. Thanks for your advices.I'll try it. David "Ken Slovak - [MVP - Outlook]" wrote: > The only supported way is to use WebDAV to connect directly to Exchange. > > I use Redemption (www.dimastr.com/redemption), which is a COM wrapper around > Extended MAPI and does work with managed code. > > -- >...
Tabular Data Trashed When Forwarding Programmatically
JP
2 / 2 13 Nov 2007
According to the VB help for BodyFormat property "All text formatting will be lost when the BodyFormat property is switched from RTF to HTML and vice-versa." HTH, JP On Nov 8, 4:26 pm, gwcallah...@starband.net wrote: > I receive RTF formated emails that contain tabular data. To parse them > I forward them to myself as HTML then user MS HTML and Internet > controls to extract...
Run a job in a COM-interface when email i sent from Outlook
Ken Slovak - [MVP - O...
2 / 2 13 Nov 2007
For deployment you create a COM addin. You hook the Item.Send() event and in that event handler start up your COM job. Look at the various code samples and COM addin samples at www.outlookcode.com for more information to get you started. -- Ken Slovak [MVP - Outlook] http://www.slovaktech.com Author: Professional Programming Outlook 2007 Reminder Manager, Extended Reminders,...
Outlook fdm Form
Marius
3 / 3 12 Nov 2007
Thank you. Then I must convert it as an *.oft. Sincerely, Marius "Sue Mosher [MVP-Outlook]" <suemvp@outlookcode.com> schrieb im Newsbeitrag news:e6ygfEAJIHA.5400@TK2MSFTNGP04.phx.gbl... Forms saved as .fdm files can only be installed manually, using the Forms Manager dialog. If you want a form you can install programmatically, it needs to be an .oft file. -- Sue Mosher,...
Moving incoming mail to folders
Rob
3 / 3 12 Nov 2007
I just wrote the following code to do pretty much what you want to do, except I'm interested in creating folders only for mail items received from outside the company mail system, i.e. not from Exchange Server. Trivial to change that. The folders are named after the domain from which the mail is received but can easily be renamed. 'The following Microsoft Visual Basic for Applications...
Archiving Old E-Mails for Group Mailboxes
Sue Mosher [MVP-Outlook]
2 / 2 08 Nov 2007
You'd probably want to use a server-based archive application for that scenario. The folks in the microsoft.public.exchange.admin newsgroup can probably make some recommendations. -- Sue Mosher, Outlook MVP Author of Microsoft Outlook 2007 Programming: Jumpstart for Power Users and Administrators http://www.outlookcode.com/article.aspx?id=54 "DCPan" <DCPan@discussions....
Reply Method Fonts And Signature
google@logican.co.uk
1 / 1 08 Nov 2007
I have added a button to an email message that responds to a click event as follows void replyAndSaveButton_Click(Microsoft.Office.Core.CommandBarButton Ctrl, ref bool CancelDefault) { try { Office.CommandBar parentCommandBar = (Office.CommandBar)Ctrl.Parent; Outlook.Inspector parentInspector = (Outlook.Inspector)...
Easy Question I hope...
DigitalPoet
3 / 3 08 Nov 2007
Dear Ken, Thank you very much for your time. I think this will certainly get me on my way. DigitalPoet "Ken Slovak - [MVP - Outlook]" wrote: > There's no real way to tell what's shown in a current view in Outlook. You > can get a Selection collection of all items that are selected, but not a > list of all items in a view. The alternative is to just get all items in a >...
move sent items
Ken Slovak - [MVP - O...
2 / 2 08 Nov 2007
If it's an Outlook folder you can't. Outlook folders are stored within an Exchange mailbox or a PST file and can only be accessed using Outlook. -- Ken Slovak [MVP - Outlook] http://www.slovaktech.com Author: Professional Programming Outlook 2007 Reminder Manager, Extended Reminders, Attachment Options http://www.slovaktech.com/products.htm "Hemant_india"...
How to mark a message in an IMAP folder for deletion in offline mode?
Ken Slovak - [MVP - O...
2 / 2 08 Nov 2007
You'd have to get hold of a MAPI viewer like MFCMAPI from an MS download or OutlookSpy (www.dimastr.com) and look at a message that isn't marked for deletion and then one that is and see what properties are different on the items. Then if you can find that you can set those properties in your code. -- Ken Slovak [MVP - Outlook] http://www.slovaktech.com Author: Professional...
Delete Email
Anand.V.V.N
2 / 2 07 Nov 2007
If you can tell at which line the error is shown, it might be more helpful to know what it means. Anand -- "Who will guard the guards?" "Rock056" wrote: > I have a macro given by someone which deletes a mail sent to a particular id > from Sent Folder and then permanently deletes it from the Delete Folder as > well. > > I get the following Compile error: Invalid outside...
Repost: Comparing Senders with Contacts
Patrick Pirtle
7 / 7 06 Nov 2007
Ken - In checking with our IS guys, it turns out the contacts are not actually being sync'd with the Exchange Server. They're running an in-house-written application each night that deletes all of the contacts with certain categories from each employee's contacts, and then replaces the deleted contacts with updated contacts from the central office database (which is part of some...
another users Inbox
Ernst Schuurman
3 / 3 05 Nov 2007
Hi Sue, Thanks for your answer, I shall give it a try. Hpoe this will work for me. great to have access to such a community. Bye "Sue Mosher [MVP-Outlook]" <suemvp@outlookcode.com> schreef in bericht news:%23aImdl%23HIHA.1208@TK2MSFTNGP05.phx.gbl... > So far I did not succeed in accessing the groupaccount's Inbox using VBA. Use the Namespace.GetSharedDefaultFolder method to...
Prevent an event loop when saving Task item in event handler
Ken Slovak - [MVP - O...
4 / 4 05 Nov 2007
Clicking Snooze changes the FlagDueBy property so it would fire an ItemChange event. Do what Michael suggested, set a flag to disable the ItemChange code when the Snooze event fires. -- Ken Slovak [MVP - Outlook] http://www.slovaktech.com Author: Professional Programming Outlook 2007 Reminder Manager, Extended Reminders, Attachment Options http://www.slovaktech.com/products.htm...
Moving/copying items around folders problem
Sue Mosher [MVP-Outlook]
3 / 3 05 Nov 2007
No, because the copy process involves creating a new item in the source folder, which can be done only when you are online. -- Sue Mosher, Outlook MVP Author of Microsoft Outlook 2007 Programming: Jumpstart for Power Users and Administrators http://www.outlookcode.com/article.aspx?id=54 "Iliyan Georgiev" <iliyan@developer.bg> wrote in message news:%23XxJ1D9HIHA....
Publish part of Outlook agenda on Google
F.H. van Zelm
3 / 3 04 Nov 2007
Thanks for reply. I'll give it a try. Though that 'time slot' thing is important to me. I woudn't like to manually copy or delete tens of appointmets every week. Frans "John Guin" <john (dot) guin (at) hotmail.com> schreef in bericht news:93628061-A1CC-48BE-8C38-2AF176B27BF0@microsoft.com... > Found it. You can import csv or Ical files in google calendar. > directions > etc....
Issues with a simple VBA macro
Boaz Chen
1 / 1 01 Nov 2007
I'm trying to write macro to do the following: 1. Decline a selected meeting request silently without sending a response. 2. Delete the meeting request item (So it's not shown in my inbox). My issue is that the item is not removed from the inbox, I can still open it, but I can't move or delete it (I get an error saying that the item has been moved or deleted). My code: Sub...
Get access to public folder as other user
Dmitry Streblechenko
3 / 3 01 Nov 2007
And even then, EX provider uses the identity of the current user to perform the authentication. In the best case you will get a login prompt; and if you know that other user's credentials, why not run as that user to begin with? Dmitry Streblechenko (MVP) http://www.dimastr.com/ OutlookSpy - Outlook, CDO and MAPI Developer Tool "Sue Mosher [MVP-Outlook]" <suemvp@outlookcode.com>...
Find flagstatus
PascalB
11 / 11 31 Oct 2007
Sue, I'll give it a try. Thanks for keeping track off the problem and providing an solution. Best Regards, PascalB "Sue Mosher [MVP-Outlook]" <suemvp@outlookcode.com> wrote in message news:eG3L3n8GIHA.4112@TK2MSFTNGP05.phx.gbl... This turned out to be a quite subtle and unexpected problem with a slightly complex solution -- using DASL syntax to return the desired search...
Open an email attachment item that is in itself an email (.msg
Option
3 / 3 31 Oct 2007
Thanks for the quick reply, Michael. I'll give it a go. "Michael Bauer [MVP - Outlook]" wrote: > > > With the Redemption (www.dimastr.com) you can get the attachments without > saving them as files first. > > For the *.msg access RDOAttachment.EmbeddedMsg and for the *.html read the > AsText property. > > -- > Viele Gruesse / Best regards > Michael Bauer - MVP Outlook >...
How to Delete Custom Search Folder in Add-In ShutDown Event
Kolan Veera Reddy
2 / 2 31 Oct 2007
Hi, I got solution for deleting the custom search folder using the Outlook object model. We can use Application.Quit event instead of Shutdown event. Private Sub ThisAddIn_Startup(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Startup Try 'Handler for Cleaning cistom Search folder. AddHandler Application.Quit, AddressOf...
Folder.Sort method
Samuel
2 / 2 28 Oct 2007
Works! Thank you, I would never think of that, in fact I still don't understand why it behaves differently. Samuel "Sue Mosher [MVP-Outlook]" <suemvp@outlookcode.com> wrote in message news:OgWwUCZGIHA.3600@TK2MSFTNGP06.phx.gbl... You need to use an explicit Items collection: Set myItems = InboxFolder.Items myItems.Sort("Received", False) If you now iterate the...
Remote Images in Outlook 2007 HTML Mails
Sue Mosher [MVP-Outlook]
2 / 2 28 Oct 2007
If you use a linked image, the recipient probably won't see it. Stick with the embedded image. -- Sue Mosher, Outlook MVP Author of Microsoft Outlook 2007 Programming: Jumpstart for Power Users and Administrators http://www.outlookcode.com/article.aspx?id=54 "UpAndAway" <UpAndAway@discussions.microsoft.com> wrote in message...
MAPI/Outlook contacts encoding
mtimony1@gmail.com
1 / 1 27 Oct 2007
Hi all, I'm somewhat confused about what encoding I should expect contracts retrieved through MAPI (from Outlook) to be in, whether they're address book entries or IPF.Contact entries. I haven't specified MAPI_UNICODE to any of the MAPI functions because most of them just return errors when I do that. Nevertheless, I seem to be getting back contacts containing non-ASCII characters....
help for get the parent item id
Sue Mosher [MVP-Outlook]
4 / 4 27 Oct 2007
I've posted a code sample at http://www.outlookcode.com/codedetail.aspx?id=1714 -- Sue Mosher, Outlook MVP Author of Microsoft Outlook 2007 Programming: Jumpstart for Power Users and Administrators http://www.outlookcode.com/article.aspx?id=54 "Sue Mosher [MVP-Outlook]" <suemvp@outlookcode.com> wrote in message news:Osj3Q9JGIHA.5228@TK2MSFTNGP05.phx.gbl... The item...
Outlook ignoring html font tag - VBA - Access 2007 & Outlook 2007
Sue Mosher [MVP-Outlook]
2 / 2 26 Oct 2007
Outlook 2007 is a bit stricter on HTML than earlier versions. It works if you put the <font> tag inside the <td> tag: "<tr><td><FONT FACE='Arial' FONT SIZE='2'>" & "somdata" & "</font></td></tr>" & _ Another option would be to use an inline style. In either case, you might want to consider building a separate function to build each cell, putting the <font> manipulation into that...
Tracking updates to Contacts
Michael Bauer [MVP - ...
6 / 6 26 Oct 2007
Yes, it would. But when developing a commercial application, the 'nice to have' issues are always at the bottom of the list. -- Viele Gruesse / Best regards Michael Bauer - MVP Outlook Organize eMails: <http://www.vboffice.net/product.html?id=2006063&cmd=detail&lang=en&pub=6> Am Thu, 25 Oct 2007 08:36:04 -0700 schrieb Matt Richter: > Wouldn't it be nice for us...
Get email handle in Outlook 2007
John Svercek
4 / 4 24 Oct 2007
Ken, thanks that did the trick, you are absolutely stupendous! -- John Svercek "Ken Slovak - [MVP - Outlook]" wrote: > It doesn't matter if Inspector.Caption is read-only, all you need to do is > read it and use that with "rctrl_renwnd32" and FindWindow to get the hWnd of > the Inspector window. > > Then use SetWindowLong to set up the z-orders you need. > > That applies to...
Sort a folder before reading it
Dmitry Streblechenko
4 / 4 23 Oct 2007
By whatever makes sense in your case - CreationTime, LastModificationTime, ReceivedTime, SentOn, etc. Dmitry Streblechenko (MVP) http://www.dimastr.com/ OutlookSpy - Outlook, CDO and MAPI Developer Tool "Samuel" <samuel.shulman@ntlworld.com> wrote in message news:eqrLhWbFIHA.1168@TK2MSFTNGP02.phx.gbl... > Sort by what > > > "Dmitry Streblechenko" <dmitry@dimastr.com> wrote in...
flag messages that my email is as CC
Ken Slovak - [MVP - O...
2 / 2 23 Oct 2007
You don't need any code for that, set up a rule to move or flag items where you are Cc'd. -- Ken Slovak [MVP - Outlook] http://www.slovaktech.com Author: Professional Programming Outlook 2007 Reminder Manager, Extended Reminders, Attachment Options http://www.slovaktech.com/products.htm "Dan" <Dan@discussions.microsoft.com> wrote in message...
MailItem Download Status
Samuel
1 / 1 23 Oct 2007
Hi My client complains that in some of the work stations they can't view the email messages via the application. The application checks the 'DownLoadState' and it lists it only if the values isn't 0 i.e. not header only In reality it seems that even if the message is fully downloaded it still doesn't recognize it as 'downloaded' In addition, I made tests on my own computer and...
Insert another Item in the Context Menu of Outlook 2007
Ahmad Jalil Qarshi
1 / 1 23 Oct 2007
Hi, I have to develop an Addin which will insert a new menu item in the context menu (Copy, Cut,....) of Outlook 2007, when right clicked on the Body of the received message. I am new to the Outlook 2007 automation. I want to use C# or VC++ 2005 for development of this Addin. Kindly give me some hints to start this. Thanks and best regards Ahmad Jalil Qarshi...
hiperlinks in e-mail text
Sue Mosher [MVP-Outlook]
1 / 1 22 Oct 2007
It depends on the format of the message. If you want to create an HTML-format message, set the MailItem's BodyFormat to olFormatHTML and then use fully tagged HTML (as in a web page) to set the HTMLBody format. If you want to create a plain text message, set BodyFormat to olFormatPlain and just include the URL in the text for the Body property. -- Sue Mosher, Outlook MVP Author of...
Attachment position in Outlook 2007
Sue Mosher [MVP-Outlook]
4 / 4 18 Oct 2007
All my tests put the attachment at the end, too. -- Sue Mosher, Outlook MVP Author of Microsoft Outlook 2007 Programming: Jumpstart for Power Users and Administrators http://www.outlookcode.com/article.aspx?id=54 "Glenn" <Glenn@discussions.microsoft.com> wrote in message news:ED694B01-37B0-493F-B18C-D7C04743BE01@microsoft.com... > Sad thing about it is that It was...
Run rules with automation
Fermon
4 / 4 17 Oct 2007
Sue, Thanks for your help. Fortunately, I think I can pull that off with this particular mailbox because it only gets mail from very specific sources so it will be easy to create my own "rules". I'll start working on it and looking forward to my company upgrading to Office 2007 soon! Thanks again, Fermon "Sue Mosher [MVP-Outlook]" wrote: > What you want to do is not...
Scripting Outlook Archive configuration
Sue Mosher [MVP-Outlook]
2 / 2 17 Oct 2007
As with most other mail profile settings, that's done with a .prf file; see http://support.microsoft.com/kb/222237/ -- Sue Mosher, Outlook MVP Author of Microsoft Outlook 2007 Programming: Jumpstart for Power Users and Administrators http://www.outlookcode.com/article.aspx?id=54 "Bjørn R." <BjrnR@discussions.microsoft.com> wrote in message...
Outlook Export Calendar to CSV Macro
Michael Bauer [MVP - ...
4 / 4 17 Oct 2007
james, you're welcome. #1 no #2 You can copy that code into Outlook VBA. You might create a new module (no class module) and copy it into it. For using the functions it's necessary that the directory already exists. Another, more powerful, way of dealing with files is the 'Microsoft Scripting Runtime' library. You might click Tools/References and add that library to your...
switch outlook to offline mode in exchange server .net
Dmitry Streblechenko
4 / 4 15 Oct 2007
YOu can use IMAPIOfflineMgr interface in C++ or Delphi, but I wouldn't do that if I were you. Sometjhng is very wrong either with your code or rwith your client's machine. Which line of your code raises the error? Dmitry Streblechenko (MVP) http://www.dimastr.com/ OutlookSpy - Outlook, CDO and MAPI Developer Tool "Ratnesh Raval" <ratneshraval@gmail.com> wrote in message...
Outlook message body format
Ken Slovak - [MVP - O...
4 / 4 13 Oct 2007
I didn't notice it was Outlook 2000, you're correct of course. -- Ken Slovak [MVP - Outlook] http://www.slovaktech.com Author: Professional Programming Outlook 2007 Reminder Manager, Extended Reminders, Attachment Options http://www.slovaktech.com/products.htm "Sue Mosher [MVP-Outlook]" <suemvp@outlookcode.com> wrote in message news:%23QbVShTDIHA.3848@TK2MSFTNGP05.phx.gbl......
VB6 get Bcc-Addressbook via CDO
Sue Mosher [MVP-Outlook]
2 / 2 12 Oct 2007
Each Recipient object (oRecipient) has a Type property that will tell you whether it's a To, Cc or Bcc. -- Sue Mosher, Outlook MVP Author of Microsoft Outlook 2007 Programming: Jumpstart for Power Users and Administrators http://www.outlookcode.com/article.aspx?id=54 <Patrick.Simons@intecsoft.com> wrote in message news:1192197084.186606.102890@z24g2000prh.googlegroups....
Send meeting update only to new required attendees through VBA
jknorpp@gmail.com
3 / 3 12 Oct 2007
On Oct 12, 1:01 am, "Michael Bauer [MVP - Outlook]" <m...@mvps.org> wrote: > After calling the Send method add a DoEvents. Track the ItemSend event and > delete every recipient but the new one. > > -- > Viele Gruesse / Best regards > Michael Bauer - MVP Outlook > Organize eMails: > <http://www.vboffice.net/product.html?id=2006063&cmd=detail =en&pub=6> > > Am Thu, 11 Oct 2007...
distributing an outlook 2003 vba to multiple users
gerryR
3 / 3 12 Oct 2007
that looks like just the job thanks! "Michael Bauer [MVP - Outlook]" <mb@mvps.org> wrote in message news:1jau5xymrm9fp$.1efx63bsi2p29$.dlg@40tude.net... > > > Read this please: > http://www.outlookcode.com/d/distributevba.htm > > -- > Viele Gruesse / Best regards > Michael Bauer - MVP Outlook > Organize eMails: > > <http://www.vboffice.net/product....
appointment or event data structure
wb
7 / 7 11 Oct 2007
Thanks for the information. "Ken Slovak - [MVP - Outlook]" <kenslovak@mvps.org> wrote in message news:O5srXq4CIHA.536@TK2MSFTNGP06.phx.gbl... > Take a look at this page, it has the most complete discussion of > recurrence pattern, based on original discussions on the MAPI list: > http://www.geocities.com/cainrandom/dev/MAPIRecurrence.html > > -- > Ken Slovak > [MVP - Outlook] >...
CommandBar Visible and Enable Properties are slow?
AgapeDisciple
2 / 2 11 Oct 2007
On Oct 5, 10:18 am, "Ken Slovak - [MVP - Outlook]" <kenslo...@mvps.org> wrote: > If the user opens an item and Inspector.CurrentItem.EntryID is a null string > it's a new item. If it has an EntryID it's an existing item. I'd use that in > addition to or instead of only checking for sent. > > To properly handle multiple open Inspectors you really need an Inspector > wrapper class. The...
Weekly Email
Michael Bauer [MVP - ...
2 / 2 11 Oct 2007
Here's a sample for how to do it with VBA: http://www.vboffice.net/sample.html?mnu=2&smp=10&cmd=showitem&lang=en?pub=6 Please note, you cannot rely on that Outlook will run 24 hours a day. Probably most of the times it will work - but Outlook is no server and sometimes it won't. -- Viele Gruesse / Best regards Michael Bauer - MVP Outlook Organize eMails: <http://www....
All times are in (US) Eastern Daylight Time (GMT -4:00)