I wrote a function that behaves like MATCH(), in that given a reference and lookup range, it will return the entire cell reference, not just the column or just the row.
My function works on the current worksheet, but I can't get it to cycle through all of the worksheets in the book, and return the cell reference with full workbook/worksheet title.
Can anyone show me how to write the loop that would search all of the worksheets? Pretend my function is blackbox, call it cellFinder().
Thanks!
Hi seams192
Welcome to the forum
does this help
Option Explicit Sub tester() Dim ws As Worksheet For Each ws In Worksheets Debug.Print ws.Name Next End Sub
regards pike
If the solution helped please donate here to the RSPCA
Sites worth visiting;
J&R Solutions - royUK
AJP Excel Information - Andy Pope
Spreadsheet Toolbox
VBA for smarties - snb
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks