Looking for an Excel VBA Macro that can review all the worksheet tabs against a single tab and find matching text values

kdjonesmtb

New Member
Joined
Feb 5, 2010
Messages
31
Looking for an Excel VBA Macro that can review all the worksheet tabs against a single source text column

For example -- Field Name -- compared to any occurrence of the same name in any worksheet and provide a summary sheet that indicates the match and the source worksheet name and location




Thanks
 

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
Or is there VLookup or Index Matching solution that work on the entire workbook -- I have 132 worksheets in the workbook
 
Upvote 0
I found this code that works within the same workbook --- is it possible to change this code to have it find matches from one workbook and see if they exist in other workbooks



'Uses Range.Find to get a range of all find results within a worksheet

' Same as Find All from search dialog box

'

Function FindAll(rng As Range, What As Variant, Optional LookIn As XlFindLookIn = xlValues, Optional LookAt As XlLookAt = xlWhole, Optional SearchOrder As XlSearchOrder = xlByColumns, Optional SearchDirection As XlSearchDirection = xlNext, Optional MatchCase As Boolean = False, Optional MatchByte As Boolean = False, Optional SearchFormat As Boolean = False) As Range

Dim SearchResult As Range

Dim firstMatch As String

With rng

Set SearchResult = .Find(What, , LookIn, LookAt, SearchOrder, SearchDirection, MatchCase, MatchByte, SearchFormat)

If Not SearchResult Is Nothing Then

firstMatch = SearchResult.Address

Do

If FindAll Is Nothing Then

Set FindAll = SearchResult

Else

Set FindAll = Union(FindAll, SearchResult)

End If

Set SearchResult = .FindNext(SearchResult)

Loop While Not SearchResult Is Nothing And SearchResult.Address <> firstMatch

End If

End With

End Function
 
Upvote 0

Forum statistics

Threads
1,215,054
Messages
6,122,895
Members
449,097
Latest member
dbomb1414

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top