Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Hello Everybody,
I have created a userform wherein I developed a listbox that searches the textbox value through out the entire sheet. The answer should be If the value found, then entire row upto column P should display in list box. could anybody help me to come out this problem. Not getting the results: If OptEntire = True Then Set cRng = sh.UsedRange Set cell = cRng.Find( _ What:=frmBoM.txtSearch, _ LookIn:=xlValues, _ LookAt:=xlPart, _ SearchOrder:=xlByColumns, _ SearchDirection:=xlNext, _ MatchCase:=False) If Not cell Is Nothing Then sAddr = cell.Address Do LastCol = (P) With Worksheets("BOM") Set myList = Range(Cells(cell, 1), Cells(cell, LastCol)) End With With frmBoM.ListBox1 .ColumnCount = 6 .AddItem myList End With Set cell = cRng.FindNext(cell) Loop While cell.Address < sAddr End If -- Thanks, Vikram P. Dhemare |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Custom Data Validation : Lock if MyCell = ""? | Excel Worksheet Functions | |||
Item numbers result in item description in next field in Excel | Excel Worksheet Functions | |||
UserForm:Resume to ListBox1 | Excel Discussion (Misc queries) | |||
delete entirerow if date more than 12months old | Excel Discussion (Misc queries) | |||
Help with: ListBox1.AddItem (ws.Name) | Excel Worksheet Functions |