Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default error message

Hi

I got two drop down lists on a worksheet. When I click the drop button
on the second list I got the following error mesage" Object doesn't
support this property or method!" and I think the error is about
RowSource property .(please refer to the below code)

Private Sub ComboBox3_DropButtonClick()

If Worksheets("Sheet1").ComboBox2.Value = "AMERICAS" Then
Worksheets("Sheet1").ComboBox3.RowSource = "List!A7:A8"

ElseIf Worksheets("Sheet1").ComboBox2.Value = "ASIA PACIFIC" Then
Worksheets("Sheet1").ComboBox3.RowSource = "List!A10:A12"

End If

Both comboboxes are on Sheet1 are populated with the data from the
sheet called "List" from the above specified ranges.

Could anyone help me with an advice?

Thank you in advance
Cristian



End Sub
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,824
Default error message

try

..ListFillRange instead of .rowsource.

(.rowsource is used in a userform, though)

Cristian wrote:

Hi

I got two drop down lists on a worksheet. When I click the drop button
on the second list I got the following error mesage" Object doesn't
support this property or method!" and I think the error is about
RowSource property .(please refer to the below code)

Private Sub ComboBox3_DropButtonClick()

If Worksheets("Sheet1").ComboBox2.Value = "AMERICAS" Then
Worksheets("Sheet1").ComboBox3.RowSource = "List!A7:A8"

ElseIf Worksheets("Sheet1").ComboBox2.Value = "ASIA PACIFIC" Then
Worksheets("Sheet1").ComboBox3.RowSource = "List!A10:A12"

End If

Both comboboxes are on Sheet1 are populated with the data from the
sheet called "List" from the above specified ranges.

Could anyone help me with an advice?

Thank you in advance
Cristian



End Sub


--

Dave Peterson

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
VBA Error Message "Compile Error...." Steve Excel Discussion (Misc queries) 3 July 15th 05 09:20 AM
error message ynissel Excel Discussion (Misc queries) 1 June 6th 05 11:13 PM
Error Message Murtaza Excel Discussion (Misc queries) 2 March 10th 05 12:38 PM
changing the message in an error message The Villages DA Excel Worksheet Functions 2 February 18th 05 05:30 PM
How do I get rid of "Compile error in hidden module" error message David Excel Discussion (Misc queries) 4 January 21st 05 11:39 PM


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