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

Appointment Field to save int value



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old August 11th 08, 02:13 PM posted to microsoft.public.outlook.program_vba
Mads Westen
external usenet poster
 
Posts: 9
Default Appointment Field to save int value

Hi,

I'm using Outlook as calendar through another program.
I need to save an INT value in a field of the Appointment item. It doesn't
matter that the field isn't visible in standard view.
Currently I'm using Location and Subject. The body field is going to be
implemented.

Regards

//MW

Ads
  #2  
Old August 11th 08, 04:48 PM posted to microsoft.public.outlook.program_vba
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default Appointment Field to save int value

Use the AppointmentItem.UserProperties.Add method to add a custom integer
property to each item:

Set myProp = myAppt.UserProperties.Add("my property", olInteger)
myProp.Value = 1
--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook Programming: Jumpstart
for Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx



"Mads Westen" wrote:

Hi,

I'm using Outlook as calendar through another program.
I need to save an INT value in a field of the Appointment item. It doesn't
matter that the field isn't visible in standard view.
Currently I'm using Location and Subject. The body field is going to be
implemented.


  #3  
Old August 12th 08, 08:19 AM posted to microsoft.public.outlook.program_vba
Mads Westen
external usenet poster
 
Posts: 9
Default Appointment Field to save int value

Thank you for your reply.
I found out that Billinginformation wasn't used, and found it easy to use
that.

However now I need a way to find an appointment from the billinginformation
id.
Is it best to use Find method, or Restrict?
I need to search through more than one users calendars.

Regards
MW

"Sue Mosher [MVP-Outlook]" skrev i meddelelsen
...
Use the AppointmentItem.UserProperties.Add method to add a custom integer
property to each item:

Set myProp = myAppt.UserProperties.Add("my property", olInteger)
myProp.Value = 1
--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook Programming: Jumpstart
for Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx



"Mads Westen" wrote:

Hi,

I'm using Outlook as calendar through another program.
I need to save an INT value in a field of the Appointment item. It
doesn't
matter that the field isn't visible in standard view.
Currently I'm using Location and Subject. The body field is going to be
implemented.



  #4  
Old August 13th 08, 12:11 AM posted to microsoft.public.outlook.program_vba
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default Appointment Field to save int value

If you're looking for a unique value, Find would work fine. Otherwise, it's a
toss-up. Note that values in BillingInformation are strings, not the INT
(integer, I presume) you originally asked about.
--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook Programming: Jumpstart
for Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx

"Mads Westen" wrote:

Thank you for your reply.
I found out that Billinginformation wasn't used, and found it easy to use
that.

However now I need a way to find an appointment from the billinginformation
id.
Is it best to use Find method, or Restrict?
I need to search through more than one users calendars.

Regards
MW

"Sue Mosher [MVP-Outlook]" skrev i meddelelsen
...
Use the AppointmentItem.UserProperties.Add method to add a custom integer
property to each item:

Set myProp = myAppt.UserProperties.Add("my property", olInteger)
myProp.Value = 1


"Mads Westen" wrote:

Hi,

I'm using Outlook as calendar through another program.
I need to save an INT value in a field of the Appointment item. It
doesn't
matter that the field isn't visible in standard view.
Currently I'm using Location and Subject. The body field is going to be
implemented.




  #5  
Old August 13th 08, 10:33 AM posted to microsoft.public.outlook.program_vba
Mads Westen
external usenet poster
 
Posts: 9
Default Appointment Field to save int value

Thanks once again,
Billinginformation will do with some INT 2 String and vise versa functions.
I'll use the Find Function, seems to work just fine.

Regards
Mads

"Sue Mosher [MVP-Outlook]" skrev i meddelelsen
...
If you're looking for a unique value, Find would work fine. Otherwise,
it's a
toss-up. Note that values in BillingInformation are strings, not the INT
(integer, I presume) you originally asked about.
--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook Programming: Jumpstart
for Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx

"Mads Westen" wrote:

Thank you for your reply.
I found out that Billinginformation wasn't used, and found it easy to use
that.

However now I need a way to find an appointment from the
billinginformation
id.
Is it best to use Find method, or Restrict?
I need to search through more than one users calendars.

Regards
MW

"Sue Mosher [MVP-Outlook]" skrev i meddelelsen
...
Use the AppointmentItem.UserProperties.Add method to add a custom
integer
property to each item:

Set myProp = myAppt.UserProperties.Add("my property", olInteger)
myProp.Value = 1


"Mads Westen" wrote:

Hi,

I'm using Outlook as calendar through another program.
I need to save an INT value in a field of the Appointment item. It
doesn't
matter that the field isn't visible in standard view.
Currently I'm using Location and Subject. The body field is going to
be
implemented.




 




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
cannot save appointment BrianB Outlook - Calandaring 1 March 5th 08 05:42 PM
Why does Subject field change after I save contact? Nancy in Napa Outlook - Using Contacts 3 July 12th 07 11:29 PM
business address country field does not save/populate Brian4 Outlook - Using Contacts 0 February 15th 07 10:45 PM
business address country field does not save/populate Brian4 Outlook - Using Contacts 0 February 12th 07 11:01 PM
Print Order & Save As Field question Angyl Outlook - Using Forms 1 May 31st 06 07:58 PM


All times are GMT +1. The time now is 05:07 PM.


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.