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

Forms



 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #6  
Old April 20th 06, 05:45 AM posted to microsoft.public.outlook.program_vba
Eric Legault [MVP - Outlook]
external usenet poster
 
Posts: 830
Default Forms

Oh good grief! See Sue, this is what happens when I don't have a forms
project in six months. Something was chattering in the back of my head about
this, because I knew I fought with this before but couldn't recall for what.
Thanks for the heads up!

--
Eric Legault (Outlook MVP, MCDBA, MCTS: Messaging & Collaboration)
Try Picture Attachments Wizard for Outlook:
http://www.collaborativeinnovations.ca
Blog: http://blogs.officezealot.com/legault/


"Sue Mosher [MVP-Outlook]" wrote:

There's an easier way -- ShowFormPage /HideFormPage, as in:

Item.GetInspector.HideFormPage "1"

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

"Eric Legault [MVP - Outlook]" wrote in message ...
Assuming you want the selected number to indicate which page you want
disabled, the code would work like this if you created a field called
MyComboBoxField and bound it to a combo box:

Sub Item_CustomPropertyChange(ByVal Name)
If Name = "MyComboBoxField" Then
Select Case Item.UserProperties("MyComboBoxField").Value
Case 1
Item.GetInspector.ModifiedFormPages("1").Enabled = False
Item.GetInspector.ModifiedFormPages("2").Enabled = True
Item.GetInspector.ModifiedFormPages("3").Enabled = True
Case 2
Item.GetInspector.ModifiedFormPages("1").Enabled = True
Item.GetInspector.ModifiedFormPages("2").Enabled = False
Item.GetInspector.ModifiedFormPages("3").Enabled = True
Case 3
Item.GetInspector.ModifiedFormPages("1").Enabled = True
Item.GetInspector.ModifiedFormPages("2").Enabled = True
Item.GetInspector.ModifiedFormPages("3").Enabled = False
End Select
End If
End Sub

--
Eric Legault (Outlook MVP, MCDBA, MCTS: Messaging & Collaboration)
Try Picture Attachments Wizard for Outlook:
http://www.collaborativeinnovations.ca
Blog: http://blogs.officezealot.com/legault/


"Ceige" wrote:

Thank you Eric i thought i was at a loss with this one

Ok my next question is "yep you guessed it" how to disable the forms using
the combo box

Just remeber a coding virgin here

Hehe
Anyway thanks peeps

"Eric Legault [MVP - Outlook]" wrote:

You can't hide tabs in a custom form except in design mode. The best you can
do is disable them in code, but they'll still be visible but not "clickable".

--
Eric Legault (Outlook MVP, MCDBA, MCTS: Messaging & Collaboration)
Try Picture Attachments Wizard for Outlook:
http://www.collaborativeinnovations.ca
Blog: http://blogs.officezealot.com/legault/


"Ceige" wrote:

Ok heres the deal

I am trying to create a form in outlook, now that in its self is not to hard
but i am not a programmer and i wanted to get a bit flash, here is what i
want to do

i have four tabs in my form named (for the sake of this post):
Main - 1 - 2 - 3

Now i want a combo box on the "main" tab with 1,2 and 3 as options

Ok thats not a problem. Now here is what i want.
If the combo box is set to 1 for example i want "2" and "3" to either be
invisible or be disabled. so if the person then changed the combo box to "3"
then 1 and 2 would be invissable or disabled.

Im sure it can be done with some sort of code to check what value is in
combo box and if it matches certain criteria to either change the enabled
states of the other pages or to change that value HideSomethingSomething in
vb.

i know there is someone who can help me but please try to keep it simple as
i really dont have a clue about VB (ok i can sort of get the idea but dont
have a clue about terminology)

Any help would be great and make me look so clever at work


 




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
Hiding Forms Ceige Outlook - Using Forms 2 May 3rd 06 03:21 PM
forms and templates rexmann Outlook - Calandaring 2 March 28th 06 06:04 PM
Convert Forms Jack Outlook - Using Forms 5 March 22nd 06 05:54 AM
Forms SyStym Outlook and VBA 1 February 24th 06 02:32 PM
Forms Mostro Outlook - General Queries 2 January 26th 06 05:34 PM


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