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

conditionnal formating lost after saving custom form



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old November 6th 07, 01:43 PM posted to microsoft.public.outlook.program_vba
[email protected]
external usenet poster
 
Posts: 1
Default conditionnal formating lost after saving custom form

Hi !

I created a custom task form in outlook 2003
I've put code to make a textbox red when value changed in a drop down
list

it works real fine, the textbox becomes red or blue depending on the
value

but

If a save my form after filling it, I close the form and reopen it,
the code isn't working anymore and the color comes back to original.
when I change the value, color doesn't change

it works only the first time I open a form

I've tried the item_open property, but same thing, only works the
first time.

can anyone help me ?

thanks

tiah

Ads
  #2  
Old November 6th 07, 01:51 PM posted to microsoft.public.outlook.program_vba
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default conditionnal formating lost after saving custom form

Outlook saves only the data in its standard and custom properties, not runtime changes to the UI. You would need to put code in the Item_Open event handler to make similar UI changes every time the user opens an existing item. If it works only once, look for signs of one-offing, which would cause code to stop running.

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


wrote in message oups.com...
Hi !

I created a custom task form in outlook 2003
I've put code to make a textbox red when value changed in a drop down
list

it works real fine, the textbox becomes red or blue depending on the
value

but

If a save my form after filling it, I close the form and reopen it,
the code isn't working anymore and the color comes back to original.
when I change the value, color doesn't change

it works only the first time I open a form

I've tried the item_open property, but same thing, only works the
first time.

can anyone help me ?

thanks

tiah

 




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
Saving Custom Toolbars [email protected] Outlook - General Queries 0 October 16th 07 11:50 AM
Saving Contacts With A Custom Designed Form...??? steve Outlook - Using Contacts 8 June 15th 07 04:57 PM
Saving Contacts With A Custom Form steve Outlook - Using Forms 0 June 13th 07 08:16 PM
lost new form data after saving .oft file Teshera Outlook - Using Forms 1 October 27th 06 02:14 AM
Automatic Formating for Custom Forms CC Outlook - Using Contacts 1 April 27th 06 08:15 AM


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