Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 32
Default matched entry complete not working

I have several combobox lists that are filled with a redim array. When I use
redim array as the list the match entry complete does not work you have to
use the mouse to select from the list. If I use a simple array the match
entry works perfectly. I need to use redim because my list sizes vary on
other combo box selections. Any ideas on how I can correct the problem.
Below is my macro. I am using excel 2002

Sub add_itemcode_list(ByRef drp As ComboBox, pcode, lrow As String)
Dim i As Integer

For i = lrow To lrow + 25
If Sheets("Can05").Range("A" & i) < pcode Then
i = i - 1

Dim row As Single

ReDim myarray(lrow To i, 1)
For row = lrow To i
myarray(row, 0) = Sheets("Can05").Range("D" & row)
myarray(row, 1) = Sheets("Can05").Range("E" & row)
Next row
drp.List() = myarray
Exit Sub

End If
Next i

End Sub
--
Thanks!
Shane W
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
Auto Complete not working in one column Lisa[_6_] Excel Discussion (Misc queries) 3 April 30th 09 04:26 PM
auto complete not working Sarah Excel Discussion (Misc queries) 3 February 24th 06 12:29 PM
automatically add borders to a cell after entry is complete BKD Excel Discussion (Misc queries) 2 January 5th 06 01:09 AM
Auto-complete an entry in drop-down list Jason New Users to Excel 2 August 23rd 05 11:29 PM
Not unhiding rows when pointing to cell to complete formula entry Don Wiss Excel Programming 0 July 2nd 04 12:20 AM


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