Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Have some code - as below - that looks up the first occurence of a specific
string in Column D, then acts on it. hat I'm more than desperate for is a drop-down that enables me to CHOOSE which string to find in the line Cells.Find(What:="-02" The drop-down list is "-01" / "-02" / "-03" / and so on, anywhere up to "-99", and comes from the range "AuditIDs". It can be a UserForm, or even the Find dialog box [must be the one that comes up with CTRL-F, as xlDialogFormulaFind.show does not work], or even an InputBox, as long as whatever value I choose, or even type, fills in the What:= in the following code. Have tried a lot of different things, and am stumped. Disregard the rest of the sub, it's working perfectly, other than of course, the objective herein re a drop-down for Cells.Find(What:= Thanx sincerely in advance. Regards, - Mike Sub FindMyCell() Dim myCell As Range Range("D7").Select Cells.Find(What:="-02", After:=ActiveCell, LookIn:=xlValues, LookAt:= _ xlPart, SearchOrder:=xlByColumns, SearchDirection:=xlNext, MatchCase:= _ False, SearchFormat:=False).Activate Set myCell = ActiveCell If Len(myCell.Offset(0, 3)) = 0 Then Set myCell = ActiveCell.Offset(2, 0) Else: Set myCell = ActiveCell End If myCell.Activate End Sub |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
I Disabled the Find Dialog Box? | Excel Programming | |||
How to pen the Find dialog box with a macro | Excel Programming | |||
Find Dialog Box | Excel Discussion (Misc queries) | |||
How do I insert A drop down dialog box as a 'list to choose from'? | Excel Worksheet Functions | |||
Find dialog Box | Setting up and Configuration of Excel |