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: 173
Default Drop-down in FIND dialog

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
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
I Disabled the Find Dialog Box? Rick S. Excel Programming 0 September 28th 07 04:09 PM
How to pen the Find dialog box with a macro jonco Excel Programming 2 February 23rd 07 03:38 AM
Find Dialog Box Elaine Excel Discussion (Misc queries) 5 June 22nd 06 08:03 AM
How do I insert A drop down dialog box as a 'list to choose from'? Rochelle B Excel Worksheet Functions 2 May 1st 05 09:49 PM
Find dialog Box Steved Setting up and Configuration of Excel 2 March 17th 05 02:08 AM


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

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"