Home |
Search |
Today's Posts |
#5
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Select column A and run:
Sub find_um() firstt = False v = "grp" For Each r In Selection If v = r.Value Then If firstt Then lastone = r.Address Else lastone = r.Address firstone = r.Address firstt = True End If End If Next MsgBox (firstone & Chr(10) & lastone) End Sub -- Gary''s Student - gsnu2007d "crapit" wrote: From a column e.g "A" How to determine the 1st cell and the last cell that contain a specific word? A B C 1 2 grp 3 grp 4 5 grp 6 7 hex 8 hex 9 hex 10 grp 11 grp |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
count if the cell contains a word found in another cell | Excel Worksheet Functions | |||
Link from a specific Cell in Excel to a specific para. in Word | Excel Worksheet Functions | |||
Count Specific word in Specific range | Excel Programming | |||
Count Specific word in specific range | Excel Worksheet Functions | |||
how do I make a word typed in a cell go to a specific cell in anot | Excel Discussion (Misc queries) |