A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

start script with at button



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old September 26th 07, 02:42 PM posted to microsoft.public.outlook.program_vba
JohanAbb
external usenet poster
 
Posts: 1
Default start script with at button

Hi,

I'm working with Outlook 2003.

I've added an extra column in my inbox, called "CaseID".

I want to be able, when I'm on a certain mail, to click on a button and to
programatically add a value into the 'CaseID' column.

Anybody?
  #2  
Old September 26th 07, 04:14 PM posted to microsoft.public.outlook.program_vba
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default start script with at button

The selected item(s) -- note plural! -- are in the Application.ActiveExplorer.Selection collection. Iterate it with a For Each ... Next loop.

You'll need to use the UserProperties.Add method to add the CaseID property to the item. The exact code depends on what type of property it is -- text, number, etc.

--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook 2007 Programming:
Jumpstart for Power Users and Administrators
http://www.outlookcode.com/article.aspx?id=54


"JohanAbb" wrote in message ...
Hi,

I'm working with Outlook 2003.

I've added an extra column in my inbox, called "CaseID".

I want to be able, when I'm on a certain mail, to click on a button and to
programatically add a value into the 'CaseID' column.

Anybody?

 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Start a macro after clic on "Send" button [email protected] Outlook - General Queries 1 August 10th 07 04:54 PM
Outlk 2k3 Script: Saving Excel File programticaly from OUTLOOK SCRIPT news.microsoft.com Outlook and VBA 3 November 22nd 06 03:33 PM
Run A SCRIPT - Select Script EMPTY mitupan116 Outlook and VBA 1 November 2nd 06 09:36 PM
Rule 'run a script' not running my script [email protected] Outlook and VBA 3 May 30th 06 12:09 PM
"Run a script" rule triggers but script does not execute Trey Shaffer Outlook and VBA 7 April 7th 06 11:34 PM


All times are GMT +1. The time now is 04:06 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.