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 - Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Setting VB to only execute on Compose Pane



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old May 8th 07, 03:20 PM posted to microsoft.public.outlook.program_forms
Gil Milone
external usenet poster
 
Posts: 7
Default Setting VB to only execute on Compose Pane

I have some vbscript that I would like to run only when the form is composed
not when it's in readmode. Is there a way to do this? IE
If Item.Compose Then
{
Do VBScript
}

Ads
  #2  
Old May 8th 07, 03:32 PM posted to microsoft.public.outlook.program_forms
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default Setting VB to only execute on Compose Pane

Check the Size or EntryID of the item. Size = 0 and EntryID = "" for newly created items.

--
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

"Gil Milone" wrote in message ...
I have some vbscript that I would like to run only when the form is composed
not when it's in readmode. Is there a way to do this? IE
If Item.Compose Then
{
Do VBScript
}

  #3  
Old May 8th 07, 05:03 PM posted to microsoft.public.outlook.program_forms
Gil Milone
external usenet poster
 
Posts: 7
Default Setting VB to only execute on Compose Pane

Thanks Susan, worked like a charm!

"Sue Mosher [MVP-Outlook]" wrote:

Check the Size or EntryID of the item. Size = 0 and EntryID = "" for newly created items.

--
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

"Gil Milone" wrote in message ...
I have some vbscript that I would like to run only when the form is composed
not when it's in readmode. Is there a way to do this? IE
If Item.Compose Then
{
Do VBScript
}


 




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
Outlook Send Button .Execute()? Brian McCullough Add-ins for Outlook 0 March 28th 07 07:28 PM
VBA code to execute for a subsequent mail merge Colonel Blip Outlook and VBA 0 September 1st 06 06:02 PM
Execute rules with a macro Gerd Neumann Outlook and VBA 1 May 11th 06 09:50 PM
Command Failed to Execute JAYDEEP DESAI Outlook Express 1 April 6th 06 01:23 PM
Outlook 2002 Execute Files Sylvia Outlook - General Queries 2 April 6th 06 04:02 AM


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