Outlook Banter

Outlook Banter (http://www.outlookbanter.com/)
-   Outlook and VBA (http://www.outlookbanter.com/outlook-vba/)
-   -   Outlook 2k3 Script: Pb Using ComboBox (http://www.outlookbanter.com/outlook-vba/34182-outlook-2k3-script-pb-using.html)

bbnimda November 30th 06 09:27 PM

Outlook 2k3 Script: Pb Using ComboBox
 
Hi All,

When I use this function with my ComboBox
MyControl.PossibleValue = "Thing1;thing2; etc... ;thingx"

Something goes wrong in my form
1) I can't new Item in my folder
2) My saved Item (created with my form), became using the default task.imp

when I use

MyControl.AddItem "thing1"
MyControl.AddItem "thing2"
..
..
MyControl.AddItem "thingX"

All is working fine

But I really need to use possible value in my form So I wonder if someone
can Help Me

Tks



Sue Mosher [MVP-Outlook] November 30th 06 09:51 PM

Outlook 2k3 Script: Pb Using ComboBox
 
You should never use PossibleValues in script code. See http://www.outlookcode.com/d/formcontrols.htm#listcombo

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

"bbnimda" wrote in message ...
Hi All,

When I use this function with my ComboBox
MyControl.PossibleValue = "Thing1;thing2; etc... ;thingx"

Something goes wrong in my form
1) I can't new Item in my folder
2) My saved Item (created with my form), became using the default task.imp

when I use

MyControl.AddItem "thing1"
MyControl.AddItem "thing2"
.
.
MyControl.AddItem "thingX"

All is working fine

But I really need to use possible value in my form So I wonder if someone
can Help Me

Tks



news.microsoft.com December 1st 06 10:03 AM

Outlook 2k3 Script: Pb Using ComboBox
 
Hi Sue ,

Is there an other Instruction, that allow adding a list of item in one line
like PossibleValue ?

I use this instruction tu set up Combo content , regarding to a selected
item in an other combo.

And it's not easy to use 20 times .AddItem each time

Tks



"Sue Mosher [MVP-Outlook]" a écrit dans le message
de news: ...
You should never use PossibleValues in script code. See
http://www.outlookcode.com/d/formcontrols.htm#listcombo

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

"bbnimda" wrote in message
...
Hi All,

When I use this function with my ComboBox
MyControl.PossibleValue = "Thing1;thing2; etc... ;thingx"

Something goes wrong in my form
1) I can't new Item in my folder
2) My saved Item (created with my form), became using the default
task.imp

when I use

MyControl.AddItem "thing1"
MyControl.AddItem "thing2"
.
.
MyControl.AddItem "thingX"

All is working fine

But I really need to use possible value in my form So I wonder if someone
can Help Me

Tks





Sue Mosher [MVP-Outlook] December 1st 06 05:54 PM

Outlook 2k3 Script: Pb Using ComboBox
 
Did you look at the page I suggested and the sample form? Setting List is what you what to do.

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

"news.microsoft.com" wrote in message ...
Hi Sue ,

Is there an other Instruction, that allow adding a list of item in one line
like PossibleValue ?

I use this instruction tu set up Combo content , regarding to a selected
item in an other combo.

And it's not easy to use 20 times .AddItem each time

Tks



"Sue Mosher [MVP-Outlook]" a écrit dans le message
de news: ...
You should never use PossibleValues in script code. See
http://www.outlookcode.com/d/formcontrols.htm#listcombo

"bbnimda" wrote in message
...
Hi All,

When I use this function with my ComboBox
MyControl.PossibleValue = "Thing1;thing2; etc... ;thingx"

Something goes wrong in my form
1) I can't new Item in my folder
2) My saved Item (created with my form), became using the default
task.imp

when I use

MyControl.AddItem "thing1"
MyControl.AddItem "thing2"
.
.
MyControl.AddItem "thingX"

All is working fine

But I really need to use possible value in my form So I wonder if someone
can Help Me

Tks






All times are GMT +1. The time now is 09:28 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-2006 OutlookBanter.com