Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 846
Default Multiform coding problem

I believe that I'm close but can't seem to get it right.

What I want to do is to control the visibility of ComboBox's and Labels on
Multiforms. Am I close? cmbEDU is the name of the first ComboBox on the
Multiform. I'm not sure if I need to note that this code is not on the
Multiform itself.


Private Sub cmbProdSeries_Change()
cmbProduct.RowSource = ""
cmbProduct.Text = ""
Select Case cmbProdSeries.Text
Case Is = "Experience Life"
cmbProduct.RowSource = "inpELProducts"
lblCDate.Caption = "Contract Effective Date"
cmbClass.RowSource = "inpStatusLbD"
MultiPage1.Pages("Page1").Item(cmdEDU).Visible = False
' MultiPage1.Pages("Page1").Item(lblEDU).Visible = False
Case Is = "Life by Design"
cmbProduct.RowSource = "inpLbDproducts"
lblCDate.Caption = "Contract Application Date"
cmbClass.RowSource = "inpStatusLbD"
MultiPage1.Pages("Page1").Item(cmdEDU).Visible = True
' MultiPage1.Pages("Page1").Item(lblEDU).Visible = True

Case Is = "New Series"
cmbProduct.RowSource = "inpNEWproducts"
lblCDate.Caption = "Contract Application Date"
cmbClass.RowSource = "inpStatusLbD"
MultiPage1.Pages("Page1").Item(cmdEDU).Visible = True
' MultiPage1.Pages("Page1").Item(lblEDU).Visible = True
End Select

End Sub
--
Wag more, bark less
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 846
Default Multiform coding problem

Got it!!! Can this be simplified???

Private Sub cmbProdSeries_Change()
cmbProduct.RowSource = ""
cmbProduct.Text = ""
Select Case cmbProdSeries.Text
Case Is = "Experience Life"
cmbProduct.RowSource = "inpELProducts"
lblCDate.Caption = "Contract Effective Date"
cmbClass.RowSource = "inpStatusLbD"
MultiPage1.Pages("Page1").Item("cmbEDU").Visible = False
MultiPage1.Pages("Page1").Item("lblEDU").Visible = False
Case Is = "Life by Design"
cmbProduct.RowSource = "inpLbDproducts"
lblCDate.Caption = "Contract Application Date"
cmbClass.RowSource = "inpStatusLbD"
MultiPage1.Pages("Page1").Item("cmbEDU").Visible = True
MultiPage1.Pages("Page1").Item("lblEDU").Visible = True

Case Is = "New Series"
cmbProduct.RowSource = "inpNEWproducts"
lblCDate.Caption = "Contract Application Date"
cmbClass.RowSource = "inpStatusLbD"
MultiPage1.Pages("Page1").Item("cmbEDU").Visible = True
MultiPage1.Pages("Page1").Item("lblEDU").Visible = True
End Select

End Sub


"Brad" wrote:

I believe that I'm close but can't seem to get it right.

What I want to do is to control the visibility of ComboBox's and Labels on
Multiforms. Am I close? cmbEDU is the name of the first ComboBox on the
Multiform. I'm not sure if I need to note that this code is not on the
Multiform itself.


Private Sub cmbProdSeries_Change()
cmbProduct.RowSource = ""
cmbProduct.Text = ""
Select Case cmbProdSeries.Text
Case Is = "Experience Life"
cmbProduct.RowSource = "inpELProducts"
lblCDate.Caption = "Contract Effective Date"
cmbClass.RowSource = "inpStatusLbD"
MultiPage1.Pages("Page1").Item(cmdEDU).Visible = False
' MultiPage1.Pages("Page1").Item(lblEDU).Visible = False
Case Is = "Life by Design"
cmbProduct.RowSource = "inpLbDproducts"
lblCDate.Caption = "Contract Application Date"
cmbClass.RowSource = "inpStatusLbD"
MultiPage1.Pages("Page1").Item(cmdEDU).Visible = True
' MultiPage1.Pages("Page1").Item(lblEDU).Visible = True

Case Is = "New Series"
cmbProduct.RowSource = "inpNEWproducts"
lblCDate.Caption = "Contract Application Date"
cmbClass.RowSource = "inpStatusLbD"
MultiPage1.Pages("Page1").Item(cmdEDU).Visible = True
' MultiPage1.Pages("Page1").Item(lblEDU).Visible = True
End Select

End Sub
--
Wag more, bark less

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Help with my coding problem? Dan the Man[_2_] Excel Worksheet Functions 3 September 11th 07 12:02 AM
If, Then, Else Coding Problem BEEJAY Excel Programming 4 May 30th 06 08:26 PM
Multiform Tab Colours Shake[_3_] Excel Programming 4 November 6th 05 03:32 PM
problem with coding Subs Excel Programming 5 September 26th 05 03:56 PM
Please help: Coding Problem Tim Excel Programming 4 June 28th 05 05:41 AM


All times are GMT +1. The time now is 05:36 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"