Outlook Banter

Outlook Banter (http://www.outlookbanter.com/)
-   Outlook and VBA (http://www.outlookbanter.com/outlook-vba/)
-   -   VBA or VBScript (http://www.outlookbanter.com/outlook-vba/9768-vba-vbscript.html)

goshute March 29th 06 01:17 AM

VBA or VBScript
 
I have been programming Access and Excel for years and now doing some
Outlook - and hating VBScript - too BIG of a learning curve.

I am in the process of developing a new user form and was wondering if
there is any way to use VBA instead of VBScript behind the form. I
want to populate a list box based upon a value entered into a combo
box, then unenable the list box. There does not seem to be any way to
do either. I have tried several examples and nothing works.


Sue Mosher [MVP-Outlook] March 29th 06 02:01 AM

VBA or VBScript
 
No, the code behind an Outlook form can only be VBScript, and the form must be published to run any code at all.

What you want to do is certainly possible. The event you'll use depends on whether the combo box is bound to a built-in property, a custom property or no property. See http://www.outlookcode.com/d/propsyntax and http://www.outlookcode.com/d/formcontrols.htm#listcombo

FYI, there is a newsgroup specifically for Outlook forms issues "down the hall" at microsoft.public.outlook.program_forms or, via web interface, at http://www.microsoft.com/office/comm...rogram_f orms

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

"goshute" wrote in message oups.com...
I have been programming Access and Excel for years and now doing some
Outlook - and hating VBScript - too BIG of a learning curve.

I am in the process of developing a new user form and was wondering if
there is any way to use VBA instead of VBScript behind the form. I
want to populate a list box based upon a value entered into a combo
box, then unenable the list box. There does not seem to be any way to
do either. I have tried several examples and nothing works.



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