PC Review


Reply
Thread Tools Rate Thread

RE: Outlook 2002 Custom Form only runs code if you select "run this fo

 
 
Richard Korinek
Guest
Posts: n/a
 
      6th Feb 2009
I figured out the problem. No need to reply.
--
Thanks in advance for your help...

Rich


"Richard Korinek" wrote:

> I am well versed in a number of scripting technologies, but I'm having
> difficulty with my first custom form. I have an HTA which gathers data, and
> populates a custom form. I cannot via code change any control properties and
> make them stick. The code for my buttons does not run at all unless I select
> "run this form" which works beautifully. Code for the form is...
> Function Item_Open()
> Item.Recipients.Add("")
> End Function
>
> Function CommandButton1_Click()
>
> End Function
>
> Function CommandButton2_Click()
> Set objPage = Item.GetInspector.ModifiedFormPages("PACMAN")
> Set objControl = objPage.Controls("txtReject")
> objControl.Visible = True
> Set objControl = objPage.Controls("Label14")
> objControl.Visible = True
> End Function
>
> Function CommandButton3_Click()
> Set objPage = Item.GetInspector.ModifiedFormPages("PACMAN")
> objPage.Controls("cmbOrg").ReadOnly = False
> objPage.Controls("cmbContact").ReadOnly = False
> objPage.Controls("cmbPlatform").ReadOnly = False
> objPage.Controls("cmbPltfrmTp").ReadOnly = False
> objPage.Controls("cmbComponent").ReadOnly = False
> objPage.Controls("cmbComponentTp").ReadOnly = False
> objPage.Controls("cmbPriority").ReadOnly = False
> objPage.Controls("cmbCaseTp").ReadOnly = False
> End Function
> --
> Thanks in advance for your help...
>
> Rich

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: Outlook 2002 Custom Form only runs code if you select "run this fo Ken Slovak - [MVP - Outlook] Microsoft Outlook Form Programming 0 6th Feb 2009 08:10 PM
Outlook 2002 Custom Form only runs code if you select "run this fo Richard Korinek Microsoft Outlook Form Programming 0 6th Feb 2009 07:04 PM
application only runs if you select 'run as' Paul Windows XP General 3 3rd Sep 2006 09:34 PM
Outlook 2003 "find" contacts doesn't work, just runs and runs =?Utf-8?B?VG9tIFN0YW5sZXk=?= Microsoft Outlook Contacts 1 5th Jul 2006 03:56 AM
Service Pack 2 update to Win XP Pro runs and runs and runs....... Ali Windows XP General 1 13th Oct 2004 08:07 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:27 PM.