![]() |
#2
|
||||
|
||||
![]()
Change your formula in cell B2 to say:
=matchrow(A2,$C$1:$N$10) copy down if you want. Put values you're looking for in column A next to the formulae. Remove all the Dims at the top of the code-module. Change your function to: Code:
Function matchrow(x, interval) Dim a As Range Set a = interval.Find(x, LookIn:=xlValues, lookat:=xlWhole, MatchCase:=False, searchformat:=False) If Not a Is Nothing Then matchrow = a.Row Else matchrow = "Not found" End Function |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
scienceguy | Word VBA | 8 | 11-11-2021 05:19 AM |
Word writing {PAGE} instead of inserting page number | Johanna | Word | 5 | 07-04-2019 07:56 AM |
![]() |
bgranzow | Word VBA | 1 | 01-07-2016 03:50 PM |
![]() |
gn4619 | Word VBA | 2 | 11-23-2015 11:00 PM |
![]() |
dea | Word | 1 | 01-04-2011 02:24 AM |