Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Sub NameTheRanges()
Dim sTableName As String
On Error Resume Next
sTableName = "MyTableName"
With ActiveSheet.Cells(1, 1).CurrentRegion
ActiveWorkbook.Names.Add _
Name:=sTableName, _
RefersTo:="=" & .Name & "!" & .Address
.CreateNames _
Top:=True, _
Left:=False, _
Bottom:=False, _
Right:=False
End With
End Sub
IF Left(Sh.Name, 3) = "tbl" Then NameTheRanges
sTableName = Sh.Name