Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() why not use a combobox rather than a text box. You can set the combobox property RowSource to sheet1!A1:A15 (or equivalent) which is the list of chemicals. The combo box give you the option of either typing in the item or selecting the item from the list. To find an item in the workshett us the following Chemical = "Oxygen" set c = sheets("Sheet1").Range("A1:A15").find(what:=Chemic al, _ lookin:=xlvalues,lookat:=xlwhole) if c is nothing then msgbox("Cannot find chemical : " & Chemical") else foundrow = c.row end if -- joel ------------------------------------------------------------------------ joel's Profile: http://www.thecodecage.com/forumz/member.php?userid=229 View this thread: http://www.thecodecage.com/forumz/sh...d.php?t=159041 Microsoft Office Help |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
fill userform textbox from userform listbox clik event | Excel Programming | |||
Sum and Counta function in Listbox for UserForm | Excel Programming | |||
Find function Pivot Table | Excel Discussion (Misc queries) | |||
userform listbox cannot get listbox.value to transfer back to main sub | Excel Programming | |||
VBA: Creating listbox similar to the one in Pivot table (Listbox+Checkbox) | Excel Programming |