Answers for "excel vba check if range name exists"

VBA
0

excel vba named range exists

Function NamedRangeExist(ByRef pWorkBook As Workbook, pName As String) As Boolean
    Dim nName As Name
    For Each nName In pWorkBook.Names
        If nName.Name = pName Then
            NamedRangeExist = True
            Exit Function
        End If
    Next nName
End Function
Posted by: Guest on January-19-2021

Code answers related to "excel vba check if range name exists"

Code answers related to "VBA"

Browse Popular Code Answers by Language