문제

I need to make a selection from cell "A8" to a cell that contains the word "endofsample". That word can be anywhere in the worksheet.

도움이 되었습니까?

해결책

This works for me.

Sub test()
    Set INFO = Cells.Find(What:="endofsample", After:=ActiveCell, LookIn:=xlFormulas, _
            LookAt:=xlPart, SearchOrder:=xlByRows, SearchDirection:=xlNext, _
            MatchCase:=False)
    If INFO Is Nothing Then
    Else
    End If

    INFO.Select
    Range("A8", ActiveCell).Select
End Sub
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top