Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Case sensitive VBA Match
A recent thread showed the way how to do match with Exact function in Excel.
It reminded me of the need to improve my ancient VBA matches made clumsily by sequel constraining the remainder of the (not very long) database or even browsing it as a whole (first occurrence sufficient). Unfortunately there is no WorksheetFunction.Exact €“ otherwise it would look like this: Function MatchRow(DBName As String, Sought As Variant) As Long Dim DB As Range With Worksheets(DBName) Set DB = Range(.Range("A1"), .Range("A1").End(xlDown)) MatchRow = Application.WorksheetFunction.Match(True, _ Application.WorksheetFunction.Exact(Sought, DB), 0) End With End Function Such a simple task should be very common, yet, and still I have not succeeded in finding a smart DG solution. What are your better ways? Sincerely -- Petr Bezucha |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
countif function: how to distinguish case/make case sensitive | Excel Worksheet Functions | |||
Getting a case sensitive match? | Excel Worksheet Functions | |||
Case Sensitive w/ IF | Excel Worksheet Functions | |||
.Name case sensitive | Excel Programming | |||
can vlookup be forced to make a case sensitive match? | Excel Discussion (Misc queries) |