I want to select an area from a list of data by finding the name of the first item, then running to the next blank cell. Can anyone tell me how to do this within visual basic?
I want to select an area from a list of data by finding the name of the first item, then running to the next blank cell. Can anyone tell me how to do this within visual basic?
Try This,
![]()
Sub FindAndSelect() s = InputBox("Find Something") Columns(1).Find(What:=s, After:=Cells(1, 1), LookIn:=xlValues, LookAt:=xlPart, SearchOrder:=xlByRows, _ SearchDirection:=xlNext, MatchCase:=False, SearchFormat:=False).Activate Range(ActiveCell, ActiveCell.End(xlDown)).Select End Sub
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks