ThreadLast AuthorMessages
read/total
Date
Formatting lost when doing MailItem.Reply
n777krish
0 / 3 13 Dec 2007
On Dec 14, 2:31 am, Anand.V.V.N <Anand...@discussions.microsoft.com> wrote: > Hello, > This might help, check if you can use htmlbody to preserve formating? > -- > "Who will guard the guards?" > > > > "n777krish" wrote: > > Hi All, > > > I have the following problem: > > Through Code I need to Reply to an e-mail selected in the Outlook > > Explorer (code below that I am running in...
VBA Editor Keeps Appearing
JP
0 / 2 13 Dec 2007
This happens to me sometimes (in OL2003) if I edit some code and then don't save & restart OL. HTH, JP On Dec 3, 3:21 pm, "Chris Boorman" <c...@microsoft.com> wrote: > I wrotea Outlook 2007 macro , and now each morning when I come in to work, I > log onto my machine and find that the Microsoft Visual Basic Editor is open! > > Any idea why this is happening (and how to get it to...
need to know who is the sender
Ken Slovak - [MVP - O...
0 / 2 12 Dec 2007
When the reminder fires you get the Item property of the Reminder item and that's the item that caused the reminder. If it's an appointment item you can then get the Organizer property. -- 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...
MfUڦU
ip
0 / 1 11 Dec 2007
...
Save sent mail
Sue Mosher [MVP-Outlook]
0 / 2 11 Dec 2007
You need to trap it in the Sent Items folder. Use the MAPIFolder.Items.ItemAdd event. -- Sue Mosher, Outlook MVP Author of Microsoft Outlook 2007 Programming: Jumpstart for Power Users and Administrators http://www.outlookcode.com/article.aspx?id=54 "aEva" <aEva@discussions.microsoft.com> wrote in message news:96CBEA14-6760-4D43-B8B5-3D0C334E5D2F@microsoft.com... >...
Unbound controls
Alexander Mueller
0 / 1 10 Dec 2007
Hi I'd like to know two things: 1) How is it possible to not bind a control (TextBox/ListBox) on a Outlook form that edits a contact item to a certain field/Property? I want a ListBox to display a number of strings in checkbox-mode (Liststyle = 1, MultiSelect = 1) It seems not to be possible in the standard Property-page because the textbox field for possible values is...
Automated mailings with Outlook/Exchange Server from Office Ap
Sue Mosher [MVP-Outlook]
1 / 4 08 Dec 2007
Since you are not using mail merge, as your original post implied, see http://www.outlookcode.com/article.aspx?ID=52 for your options. Actually using Word's mail merge capability would be another solution, not covered on that page. -- Sue Mosher, Outlook MVP Author of Microsoft Outlook 2007 Programming: Jumpstart for Power Users and Administrators http://www.outlookcode....
Get mailbox exchange server name
Ray N
0 / 2 08 Dec 2007
I want to programmatically retrieve user's mailbox exchange server name in Outlook. Of course, after user logging in. Outlook 2007 has an ExchangeMailboxServerName property on the NameSpace object. What can I do if I want to get same information in previous version, e.g. Outlook 2003. Thanks Ray...
How to catch evenement when i click "New Mail" or "Response" with outlook 20...
Sue Mosher [MVP-Outlook]
0 / 2 06 Dec 2007
The event that fires when a new message appears is Inspectors.NewInspector. -- Sue Mosher, Outlook MVP Author of Microsoft Outlook 2007 Programming: Jumpstart for Power Users and Administrators http://www.outlookcode.com/article.aspx?id=54 "sylvain" <sjeanpetit@index-education.fr> wrote in message news:12065285-A2FD-4571-A184-E61108832396@microsoft.com... > Hi, >...
display folder in address book checkbox with cdo/mapi
OSI Mik
0 / 7 05 Dec 2007
Yes, that explain the reaction of my software. The change of these values is useless with LogonExchangeMailbox then I divide my program in two functions. One on Exchange serveur with CDO and one on client machine with outlook (ShowAsOutlookAB). Thank you very much for your help, I anderstand better the outlook structure now. :-) Osimik "Dmitry Streblechenko" <dmitry@dimastr.com>...
Export from access to outlook public folder using VBA
Ken Slovak - [MVP - O...
0 / 5 04 Dec 2007
Dim colItems As Outlook.Items Dim strFilter As String Set colItems = cf.Items ' Items collection If ![contactID] <> "" Then Set c = Nothing ' make sure it's null strFilter = "" ' ditto ' use the "User1" property, usually unused. Construct a filter using User1 and the contactID value. ' the value of contactID is a string, enclose it in quotes. ' see the Object...
Auto Schedule Send Mail in pre-defined intervals via VBA
Michael Bauer [MVP - ...
1 / 2 03 Dec 2007
Please don't double post. See answer in *.program_vba. -- Best regards Michael Bauer - MVP Outlook Synchronize Color Categories & Ensure that Every Item Gets Categorized: <http://www.vboffice.net/product.html?id=2006063&cmd=detail&lang=en&pub=6> Am Sun, 2 Dec 2007 20:48:24 +0300 schrieb Michael Avidan: > Hi all, > I wonder, is there a ready&working VBA code that I can...
obtaining the currently highlighted date in the outlook calendar and obtainin...
Sue Mosher [MVP-Outlook]
0 / 6 02 Dec 2007
To find all appointments in a date range, use the MAPIFolder.Items.Restrict method; see http://www.outlookcode.com/article.aspx?id=30 -- Sue Mosher, Outlook MVP Author of Microsoft Outlook 2007 Programming: Jumpstart for Power Users and Administrators http://www.outlookcode.com/article.aspx?id=54 "Sean Farrow" <sean.farrow@seanfarrow.co.uk> wrote in message...
Auto form fill
UkJay
1 / 3 01 Dec 2007
n/p I sussed it James http://www.ukjay.co.uk On 24 Nov, 09:41, UkJay <j...@ukjay.co.uk> wrote: > I thought this task would have been a piece of proverbial? > I was wrong? > > Jameshttp://www.ukjay.co.uk > > On 23 Nov, 12:33, UkJay <j...@ukjay.co.uk> wrote: > > > > > Hi > > > There are a few sites that I have to fill in a log on form that > > doesn't use cookies > > I...
Mapping Annoyance
Matt Williamson
0 / 1 30 Nov 2007
Since MS decided to hard code (or put somewhere other than the registry) http://r.office.microsoft.com/r as the default location for the map button in Outlook 2003 and it can no longer be changed in the registry using the MapScriptURL registry value, I decided to write some code to give better options. I wrote this as a replacement to the map button on the contact form so it only...
Add Categories to outbound messages using CDO
bnaveke
1 / 6 28 Nov 2007
Use Primary Interop Assemblies Add reference Microsoft.Office.Interop.Outlook.dll to your Project Then Code: Dim OApp As New Microsoft.Office.Interop.Outlook.Application() Dim omail As Microsoft.Office.Interop.Outlook.MailItem OMail = OApp.CreateItem(Microsoft.Office.Interop.Outlook.OlItemType.olMailItem) omail.To = "someperson@someserver.com" omail.Subject = "Test Cat" omail....
Related items in VBA Code
Sue Mosher [MVP-Outlook]
0 / 3 28 Nov 2007
Yes, by using the Links.Add method, which takes as its argument, the ContactItem that you want to link to. -- Sue Mosher, Outlook MVP Author of Microsoft Outlook 2007 Programming: Jumpstart for Power Users and Administrators http://www.outlookcode.com/article.aspx?id=54 "David" <consulttech2004@hotmail.com> wrote in message...
Redemption MAPITables does not get PR_SENDER_NAME if headers o
Chris Miller
0 / 5 28 Nov 2007
Thanks again ken, I did have an issue with correct EntryID and StoreID which I have now resolved. As for downloading the message in headers only state, i believe your method of checking the download state to be valid. Many thanks again "Ken Slovak - [MVP - Outlook]" wrote: > The item is null and both EntryID and StoreID are valid values? You can try > checking the item....
managing a "volunteering" mailing list
Sue Mosher [MVP-Outlook]
0 / 2 27 Nov 2007
Your requirements 1-4 are in conflict with requirements 5-6, because they are asking for features that are not simple to implement. I would suggest you go to http://www.googlegroups.com and set up a mailing list there, for free. Or use Yahoo or MSN. Or ask your mail administrator if there are any internal tools already available. -- Sue Mosher, Outlook MVP Author of Microsoft...
Searching by To or From fields (Outlook 2003)
Eugene Mayevski
0 / 7 27 Nov 2007
Hello! You wrote on Mon, 26 Nov 2007 15:55:37 -0500: SMM> It worked for me once, but now it's not working. :( I'll investigate SMM> further. The strangest thing is that it doesn't work from the script only. When the same is used from the dialog, it works. I played with displayto again and ensured that the above results are consistent. With best regards, Eugene Mayevski...
proba
Goran Stojanovic
0 / 1 25 Nov 2007
sada je 1130...
ContactItems of "Global Address List"
Sue Mosher [MVP-Outlook]
0 / 2 23 Nov 2007
That's because the GAL does not contain ContactItem objects. Instead, each item in the AddressEntries collection is an AddressEntry object. -- Sue Mosher, Outlook MVP Author of Microsoft Outlook 2007 Programming: Jumpstart for Power Users and Administrators http://www.outlookcode.com/article.aspx?id=54 "Jos" <Jos@discussions.microsoft.com> wrote in message...
Using Restrict on Outlook.items
JP
0 / 4 23 Nov 2007
Glad to help! --JP On Nov 21, 4:40 pm, Ralph <Ra...@discussions.microsoft.com> wrote: > Perfect! Thank you. > > > > "JP" wrote: > > I think you have to set an object reference to the restricted items. > > For example > > > Set X = olAppt.Restrict(fndDate) > > > See if that works > > > HTH, > > JP...
*** Bug in GetSearchFolders method ? ***
John Mann
1 / 5 23 Nov 2007
Thanks for your answer which indeed solves the question I asked. "Dmitry Streblechenko" wrote: > Any store does indeed have more search folders than Outlok shows in the UI - > the search folders are used to handle the Reminders, etc. > A temporary search folder is created if you use AdvancedSearch. > A normal search folder is invisible in the Outlook UI, but GetSearchFolders > will...
email HTMLBody with Word as Email Editor
Mikey
0 / 3 22 Nov 2007
Oh, and just an FYI....when I displayed the e-mail in question I was able to set the image to use abs positioning via the menu options of the Word Email. In looking at the resulting code, some word specific HTML tags were used...<v:shape> for GTE VML 1 if statement and <span> for !VML if statement. I tried using similar statements but it didn' work so I must be missing something else...
How to get mailitem in "Appplication_NewMail" ?
Sue Mosher [MVP-Outlook]
0 / 2 22 Nov 2007
NewMail is the least useful event for processing incoming items. See http://www.outlookcode.com/article.aspx?id=62 for better approaches. -- Sue Mosher, Outlook MVP Author of Microsoft Outlook 2007 Programming: Jumpstart for Power Users and Administrators http://www.outlookcode.com/article.aspx?id=54 "sylvain" <sjeanpetit@index-education.fr> wrote in message...
Hoe to set the sender name of a mail Item
DavidE
0 / 5 22 Nov 2007
Hi Dmitry, I use it in an outgoing message . David "Dmitry Streblechenko" wrote: > Are you setting the sender name on an outgoing message or are you creating a > message that looks like it was received from a particular sender? > > Dmitry Streblechenko (MVP) > http://www.dimastr.com/ > OutlookSpy - Outlook, CDO > and MAPI Developer Tool > > "DavidE" <DavidE@discussions....
Running Outlook Calendar From VB Leaves Orphan Outlook.exe Running
Ken Slovak - [MVP - O...
0 / 3 20 Nov 2007
Does it help if you hook Outlook.Application.Quit and release all your objects in that event handler or do you not get the Quit event? If not borrow from what all the COM addins do and handle Explorer.Close and Inspector.Close and see if both collections are empty or if the last Explorer is closing, and there are no Inspectors and the last Inspector closing with no Explorers open. If...
Assigning a Task to another user does seem to work
JP
0 / 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
0 / 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
0 / 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
0 / 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
0 / 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
0 / 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
0 / 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...
0 / 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
0 / 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
0 / 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]
0 / 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
0 / 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
0 / 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...
0 / 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...
0 / 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
0 / 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
0 / 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
0 / 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...
0 / 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]
0 / 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
0 / 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
0 / 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...
All times are in (US) Eastern Daylight Time (GMT -4:00)