Hi all, time to ask for help. What's the error please:
VBA Code:
Sub m_NamePastAdmin()
'
Application.DisplayAlerts = False
Application.DisplayStatusBar = False
Application.ScreenUpdating = False
'
ws_3Admin1.Activate
'
Dim LastCol As Integer
Dim LastRow As Long
Dim ThisWsName As Name
Dim PastAdminWsDate As Range
Dim PastAdminWsName As Range
Dim ThisWs As Worksheet
Dim ThisWb As Workbook
'
Set ThisWb = ActiveWorkbook
Set ThisWs = ActiveSheet
'
With ThisWs
LastRow = .Cells(Cells.Rows.Count, "A").End(xlUp).Row
LastCol = .Cells(1, Columns.Count).End(xlToLeft).Column
Cells(Rows.Count, "A").End(xlUp).Name = "PastAdminWsDate"
Cells(Rows.Count, "A").End(xlUp).Offset(1, 0).Name = "PastAdminWsName"
Range("PastAdminWsName").Value = "Past Admin "
ws_3Admin1.Name = Range(PastAdminWsName) & Range(PastAdminWsDate)
Application.ScreenUpdating = True
Application.StatusBar = False
End With 'ThisWs
End Sub