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

Can someone post a VB snippet to change some form settings?



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old May 30th 07, 07:04 PM posted to microsoft.public.outlook.program_vba
Default User
external usenet poster
 
Posts: 9
Default Can someone post a VB snippet to change some form settings?

Hi,

We have a custom form with a few check boxes and a couple entry fields. I
need some VB code that will set a couple of the check boxes to true and then
put a date in an entry field. Does anyone have a code sample that can do
this? How do I reference the currently opened message (with the custom
form) ?

Thanks for the help,

Alan
http://www.sadevelopment.com
Partition Boot Manager and Large Drive Tools utilities!



  #2  
Old May 30th 07, 07:42 PM posted to microsoft.public.outlook.program_vba
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default Can someone post a VB snippet to change some form settings?

From VB/VBA, you can use the Application.ActiveInspector.CurrentItem method from the Outlook object model to return the currently open item. In the VBScript code behind a custom form, you'd use the intrinsic Item object.

See http://www.outlookcode.com/article.aspx?ID=38 for a primer on working with Outlook property and control values.

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx

"Default User" wrote in message ...

We have a custom form with a few check boxes and a couple entry fields. I
need some VB code that will set a couple of the check boxes to true and then
put a date in an entry field. Does anyone have a code sample that can do
this? How do I reference the currently opened message (with the custom
form) ?


 




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
Emailing a Post form robert Outlook and VBA 4 November 1st 06 08:33 PM
RecipientControl in Post custom form Bill Outlook - Using Forms 1 May 11th 06 08:32 PM
How to keep Post Form anonymous when printing or saving? andreag Outlook - Using Forms 1 May 11th 06 06:29 PM
Errors in sending a post form in Outlook 2k Desiboy Outlook and VBA 7 May 4th 06 08:53 PM
Auto Number in a Custom Post Form Chuck Rich Outlook - Using Forms 1 February 13th 06 07:28 PM


All times are GMT +1. The time now is 10:17 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.