#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Error 438

Why is this giving me runtime error 438?


Sub ComboBox6_Change()

If Sheets("Main Menu").ComboBox6.Value = "Main Menu" Then Call
DisplayMenu
If Sheets("Main Menu").ComboBox6.Value = "Goals" Then Call DisplayGoals
If Sheets("Main Menu").ComboBox6.Value = "Development Plan" Then Call
DisplayDevPlan
If Sheets("Main Menu").ComboBox6.Value = "Mid-Year" Then Call
DisplayMidYear
If Sheets("Main Menu").ComboBox6.Value = "Self-Evaluation" Then Call
DisplaySelfEval
If Sheets("Main Menu").ComboBox6.Value = "Functional Manager" Then Call
DisplayFunctionalMgr
If Sheets("Main Menu").ComboBox6.Value = "Manager" Then Call
DisplayManager

End Sub

Anyone?

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,290
Default Error 438

m,

Is the ComboBox from the Control Tool Box and not from the
Forms toolbar ?
Does the sheet have the exact name "Main Menu" ?
Is the code located in the sheet module ?
Is the combobox actually named "ComboBox6" ?
Does it work if you replace...Sheets("Main Menu") with...Me ?

Jim Cone
San Francisco, USA



wrote in message
oups.com
Why is this giving me runtime error 438?

Sub ComboBox6_Change()

If Sheets("Main Menu").ComboBox6.Value = "Main Menu" Then Call
DisplayMenu
If Sheets("Main Menu").ComboBox6.Value = "Goals" Then Call DisplayGoals
If Sheets("Main Menu").ComboBox6.Value = "Development Plan" Then Call
DisplayDevPlan
If Sheets("Main Menu").ComboBox6.Value = "Mid-Year" Then Call
DisplayMidYear
If Sheets("Main Menu").ComboBox6.Value = "Self-Evaluation" Then Call
DisplaySelfEval
If Sheets("Main Menu").ComboBox6.Value = "Functional Manager" Then Call
DisplayFunctionalMgr
If Sheets("Main Menu").ComboBox6.Value = "Manager" Then Call
DisplayManager

End Sub

Anyone?

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Error 438

Jim,

From the control toolbox, yes.


I edited the code a bit (see below) and now nothing at all is happening
when I select something from the dropdown menu.... what do you think?

Sub ComboBox6()

If Sheets("Competencies").ComboBox6.Value = "Main Menu" Then Call
DisplayMenu
If Sheets("Competencies").ComboBox6.Value = "Goals" Then Call
DisplayGoals
If Sheets("Competencies").ComboBox6.Value = "Development Plan" Then
Call DisplayDevPlan
If Sheets("Competencies").ComboBox6.Value = "Mid-Year" Then Call
DisplayMidYear
If Sheets("Competencies").ComboBox6.Value = "Self-Evaluation" Then Call
DisplaySelfEval
If Sheets("Competencies").ComboBox6.Value = "Functional Manager" Then
Call DisplayFunctionalMgr
If Sheets("Competencies").ComboBox6.Value = "Manager" Then Call
DisplayManager

End Sub

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,290
Default Error 438

m,

I think that the sheet name should be the name of the sheet
that the combobox is on.
I also think that the code belongs in the code module behind
the sheet (right-click the sheet tab and select "view code").

Jim Cone

wrote in message
oups.com
Jim,
From the control toolbox, yes.

I edited the code a bit (see below) and now nothing at all is happening
when I select something from the dropdown menu.... what do you think?

Sub ComboBox6()

If Sheets("Competencies").ComboBox6.Value = "Main Menu" Then Call
DisplayMenu
If Sheets("Competencies").ComboBox6.Value = "Goals" Then Call
DisplayGoals
If Sheets("Competencies").ComboBox6.Value = "Development Plan" Then
Call DisplayDevPlan
If Sheets("Competencies").ComboBox6.Value = "Mid-Year" Then Call
DisplayMidYear
If Sheets("Competencies").ComboBox6.Value = "Self-Evaluation" Then Call
DisplaySelfEval
If Sheets("Competencies").ComboBox6.Value = "Functional Manager" Then
Call DisplayFunctionalMgr
If Sheets("Competencies").ComboBox6.Value = "Manager" Then Call
DisplayManager

End Sub

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
Counting instances of found text (Excel error? Or user error?) S Davis Excel Worksheet Functions 5 September 12th 06 04:52 PM
I have Error 1919 Error Configuring ODBC dataSource Database Texanna1 Excel Discussion (Misc queries) 1 September 12th 06 06:35 AM
run-time error '1004': Application-defined or object-deifined error [email protected] Excel Programming 5 August 10th 05 09:39 PM
Automation Error, Unknown Error. Error value - 440 Neo[_2_] Excel Programming 0 May 29th 04 05:26 AM


All times are GMT +1. The time now is 06:53 AM.

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

About Us

"It's about Microsoft Excel"