Hello folks
I've got two User Defined Functions (see below) that give me the Worksheet and Refers To range for a list of named ranges in my workbook. However these only work for Defined Names and not Tables. What should I do to amend these UDFs so that I also get the Worksheet and Refers To Range info for tables please?
Thanks![]()
Function NamedRangeAddress(ByVal sName As String) As String On Error Resume Next NamedRangeAddress = Application.ActiveWorkbook.Names(sName).RefersTo End Function Function NamedRangeWorksheet(ByVal sName As String) As String On Error Resume Next NamedRangeWorksheet = Application.ActiveWorkbook.Names(sName).RefersToRange.Worksheet.Name End Function
Kenny
Bookmarks