LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Setting ComboBox Value

I have come across a strange error.

I have a userform set up with 5 comboboxes. Each box has its item
populated when you load the form based on the contents of a range on
worksheet. I use the following code to update the combobox (ctl is th
combobox to be populated):


Dim i As Integer 'loop counter

ctl.Clear
PopulateReviewerList fileList

With Worksheets("Reviewer Data")
For i = 1 To ArrayMethods.Size(fileList) - 1
ctl.AddItem .Cells(fileList(i), 2).Value & " - " & .Cells(fileList(i)
3).Value
Next i

End With

Once the form is loaded, a second function sets the value of the for
to be the value of a cell on a spreadsheet according to this code (it'
generic to reduce confusion):

cbx.Value = Cells(x,y).Value

I encounter a runtime error whenever the cell value is not one of th
values preloaded into the box, even though the matchrequired propert
is set to false. If the value matches one in the box, then there is n
issue.

I want the combobox to be able to be set to any value. Can someone hel
me with this?

Regards,
Ripa

--
Message posted from http://www.ExcelForum.com

 
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
setting default filter setting tpeter Charts and Charting in Excel 0 December 4th 09 02:50 PM
fill combobox depending on selection from another combobox Adam Francis Excel Discussion (Misc queries) 2 July 24th 08 07:39 PM
Setting default pivot table field setting to "sum" Mr. Moose Excel Discussion (Misc queries) 2 December 21st 04 04:43 PM
Sending email via macro- setting the importance setting. Julian Milano[_2_] Excel Programming 1 January 20th 04 10:15 PM
ComboBox or what?!? pikus Excel Programming 4 December 28th 03 03:46 AM


All times are GMT +1. The time now is 05:59 AM.

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"