G
Guest
Hi
Thanks to Frank & Tom I pretty much have my macro working. I just have this one (final) problem. The following code generates a type mismatch error. Can anybody help
Sub Finder(
Dim FromRow, ToRow As Intege
SelTeam = Range("a1") 'A1 contains ED
FromRow = WorksheetFunction.VLookup(SelTeam, Range("A1:C6"), 2, False) '2
ToRow = WorksheetFunction.VLookup(SelTeam, Range("A1:C6"), 3, False) '2
Rows("FromRow, ToRow").Hidden = False '**this is the line that causes the proble
End Su
Many thanks, Ian
Thanks to Frank & Tom I pretty much have my macro working. I just have this one (final) problem. The following code generates a type mismatch error. Can anybody help
Sub Finder(
Dim FromRow, ToRow As Intege
SelTeam = Range("a1") 'A1 contains ED
FromRow = WorksheetFunction.VLookup(SelTeam, Range("A1:C6"), 2, False) '2
ToRow = WorksheetFunction.VLookup(SelTeam, Range("A1:C6"), 3, False) '2
Rows("FromRow, ToRow").Hidden = False '**this is the line that causes the proble
End Su
Many thanks, Ian