| Thread | Last Author | Messages read/total | Date |
|---|
| my sister and a dog humping |
yenc@yenc-news.co.uk |
0 / 1 |
09 Jan 2008 |
| ... |
| Subject: Outlook - Choose root folder then delete all subfolders n |
Michael Bauer [MVP - ... |
0 / 2 |
08 Jan 2008 |
| You might modify the CreateFolderSetInSubFolders procedure. This shoudl
delete every subfolder of the selected root folder.
Dim i&
Dim Folders as Outlook.Folders
' ... select root folder here
Set Folders=objRootFolder.Folders
For i=Folders.Count to 1 step-1
Folders.Remove i
Next
--
Best regards
Michael Bauer - MVP Outlook
Synchronize Outlook Categories:... |
| Add item to default calendar |
Ken Slovak - [MVP - O... |
0 / 2 |
07 Jan 2008 |
| Set olAppt = olFolder.Items.Add(olAppointmentItem)
With olAppt
.Start = whatever time/date you want
.End = whatever time/date you want
.AllDayEvent = False
.BusyStatus = olFree
.ReminderSet = False
.Save
End With
--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007
Reminder Manager, Extended Reminders,... |
| Contacts with detail view Titel bar |
Sue Mosher [MVP-Outlook] |
0 / 2 |
05 Jan 2008 |
| In the Field dialog for that view's settings, see what field is listed first. That is the field that appears in the title bar. Either change the first field to something else or, in your code, set the value for that field.
--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook 2007 Programming:
Jumpstart for Power Users and Administrators
http://www.outlookcode.com/article.... |
| Outlook contacts: "user defined folderfields??" to make public under "user de... |
Werner Fabender |
0 / 3 |
05 Jan 2008 |
| On Sat, 5 Jan 2008 10:54:38 -0500, "Sue Mosher [MVP-Outlook]"
<suemvp@outlookcode.com> wrote:
Hello Sue,
thanks a lot, its working.
.Save this was what it make working.
Werner
>> 1. What is wrong with this code or did I forgotten something?
>
>You may have forgotten 2 things: I don't see any Kontakt.Save statement =
>to save the contact after you add a custom field to it.... |
| Get selected text from the reading pane (preview pane). |
JRB |
0 / 3 |
04 Jan 2008 |
| OK I finally got to "hack" my way to what I needed to do: force a "Ctrl-c" so
the application will copy the selected text to the clipboard and then I can
retrieve the string from the clipboard.
Here is what I coded in C# (I am sure the objects are the same in VB and VBA):
// Remember what the clipboard was before.
IDataObject currentClipboardData = Clipboard.GetDataObject();
// Send... |
| How to search a contact in Outlook via firstname, lastname, phonenumber. |
Ken Slovak - [MVP - O... |
0 / 2 |
04 Jan 2008 |
| Get the Items collection of the folder where the contact is and use the
Restrict method to limit an Items collection to only those contacts that
meet your criteria. Look at the Object Browser help on Restrict to see how
to construct your restriction using the FirstName, LastName and the phone
number fields. There are 17 different phone fields in an Outlook contact so
make sure you... |
| Script to change the date of mails in a specific folder |
Ken Slovak - [MVP - O... |
0 / 4 |
04 Jan 2008 |
| I have no idea how the tool you used does the conversion or if it does it
correctly or modifies things or loses any properties. Since I don't use
Thunderbird at all I couldn't even test what happens.
In general if you have data in a PST file and you open that PST, select
items in a folder and copy or move them to your mailbox there should be no
loss of properties. If those items... |
| event notification when compose/reply page/form open |
Ken Slovak - [MVP - O... |
0 / 4 |
03 Jan 2008 |
| There is absolutely no difference in the Outlook 2003 and 2007 objects
models related to Explorer CommandBars. I haven't had to modify one line of
my code for Explorer UI to let it run correctly in Outlook 2007. Inspectors
are a different story, there things have changed with the Ribbon.
--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming... |
| Prompt the SELECT NAMES box from another Office application us |
Sue Mosher [MVP-Outlook] |
0 / 11 |
03 Jan 2008 |
| CreateObject("MAPI.Session") would create a CDO 1.21 session, which would be subject to Outlook security prompts and has no access to Outlook's basic Explorer and Inspector UI objects. Those objects are available only if you use CreateObject("Outlook.Application") to instantiate an Outlook session.
--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook 2007 Programming:... |
| How to prompt the “Insert item (as an attachment)” dialog with MAP |
LuisE |
0 / 1 |
02 Jan 2008 |
| I’m able to open the address book but I can’t find the way to open the dialog
in reference.
Thanks in advance... |
| M.I,5-Pe rsecution ` No Jus tice fo r t he Vi ctims of M I5 |
evevmfvei@bigfoot.com |
0 / 1 |
31 Dec 2007 |
| MI5. Persecution Update: Friday 11 June, 1999
Harassment. in a pub in Clapham, Tuesday lunchtime
Once a month, or once every other. month, I meet a Polish friends of mine
who lives in Clapham North, and sometimes we. go to a particular pub near
where he lives. The last time was some two months ago; I did not have. my
minidisc-walkman with me, and consequently was. seriously harassed... |
| Autoarchive from a subfolder to a public folder? |
DCPan |
0 / 3 |
26 Dec 2007 |
| Oh boy.
Doesn't help that the sub-folder I'm trying to do that with is a group
outlook mailbox that the team has permissions to.
thanks!
"Ken Slovak - [MVP - Outlook]" wrote:
> There isn't a rule template like that and you can only autoarchive to a PST
> file, not a public folder.
>
> You'd have to write your own code from scratch to do what you want.
>
> --
> Ken Slovak... |
| ItemChange event saves item - triggers itself - Help! |
gorfbox@gmx.de |
0 / 4 |
24 Dec 2007 |
| On 23 Dez., 22:28, "Dmitry Streblechenko" <dmi...@dimastr.com> wrote:
> Or first compare the old and new values before setting them - if they are
> the same, there is no reason to set the properties anew and save the item.
Hello Ken and Dmitry,
Thanks for the responses, I decided to go with Dmitry's suggestion,
basically I checked to see if something changed, and only saved if... |
| Printing multiple email messages causes Outlook to crash |
Anand.V.V.N |
0 / 8 |
21 Dec 2007 |
| Hi,
You can write the macro to dump the contents on the body text into work
document in the outlook VBA editor. Are you comfortable in VBA?
It should be a very simple process. First move all your mils into the
desired folder, that you are doing any way. Then for each mail item in that
folder, get the body text of the email into a word document. This you can
achieve by creating a... |
| An automatic category to all my meetings |
JP |
0 / 7 |
17 Dec 2007 |
| Sorry about that. I was not thorough enough in my response. Paste the
code into ThisOutlookSession module, then add these lines to the
Application_Startup event:
Dim objNS As Outlook.NameSpace
Set objNS = Application.GetNamespace("MAPI")
Set Items = objNS.GetDefaultFolder(olFolderInbox).Items
Make sure you save, close and restart Outlook before testing the code.
Usually I set a... |
| 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] |
0 / 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 - ... |
0 / 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 |
0 / 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 |
0 / 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 |
0 / 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.
>
> --
>... |