...ing logging 3.0 このページをアンテナに追加 RSSフィード

July 01(Fri), 2011

指定した文字列を含むセルを検索する関数

Function FINDCELL(r As Range, str As String) As Object

    Dim theCell As Object
    Set theCell = r.Cells.Find(str, LookAt:=xlPart)
    If theCell Is Nothing Then
        Set FINDCELL = Nothing
    Else
        Set FINDCELL = theCell
    End If
    
End Function