Sub NextDay2()
Dim WS As Worksheet
Dim LastCellRowNumber As Long
Dim LastCellD As String
Dim LastCellE As String
Dim LastCellF As String
Dim LastCellG As String
Dim LastCellH As String
Dim LastCellI As String
Dim LastCellJ As String
Dim LastCellK As String
Dim LastCellL As String
Dim LastCellM As String
Dim LastCellN As String
Dim LastCellO As String
Dim LastCellP As String
Dim LastCellQ As String
Dim i As Integer
Dim TheDay As Date
Dim wSheet As String
wSheet = ActiveSheet.Name
i = 0
Application.ScreenUpdating = False
TheDay = Range("E65536").End(xlUp).Offset(0, 0).Value
TheDay = TheDay + 1
Set WS = Worksheets(wSheet)
With WS
LastCellD = [match(2,1/(D:D<>""))]
LastCellE = [match(2,1/(E:E<>""))]
LastCellF = [match(2,1/(F:F<>""))]
LastCellG = [match(2,1/(G:G<>""))]
LastCellH = [match(2,1/(H:H<>""))]
LastCellI = [match(2,1/(I:I<>""))]
LastCellJ = [match(2,1/(J:J<>""))]
LastCellK = [match(2,1/(K:K<>""))]
LastCellL = [match(2,1/(L:L<>""))]
LastCellM = [match(2,1/(M:M<>""))]
LastCellN = [match(2,1/(N:N<>""))]
LastCellO = [match(2,1/(O:O<>""))]
LastCellP = [match(2,1/(P:P<>""))]
LastCellQ = [match(2,1/(Q:Q<>""))]
'---------------------------------------------------------------------------------------------------------------------
' THIS LINE (for each variable) WASN'T WORKING FOR ACCOUNTING FORMAT
'*****LastCellQ = Columns("Q").Find("*", SearchDirection:=xlPrevious, SearchOrder:=xlByRows, LookIn:=xlValues).Row
'---------------------------------------------------------------------------------------------------------------------
LastCellRowNumber = Application.WorksheetFunction.Max(LastCellD, LastCellE, LastCellF, LastCellG, LastCellH, LastCellI, LastCellJ _
, LastCellK, LastCellL, LastCellM, LastCellN, LastCellO, LastCellP, LastCellQ)
End With
LastCellRowNumber = LastCellRowNumber + 1
Range("E" & LastCellRowNumber).Value = TheDay
Range("E65536").End(xlUp).Offset(0, -1).Select
Do
'Top Border thick (Weight 1-4)
With Selection.Borders(xlEdgeTop)
.LineStyle = xlContinuous
.Weight = 3
End With
ActiveCell.Offset(0, 1).Select
i = i + 1
Loop Until i = 14
Application.ScreenUpdating = True
ActiveWindow.ScrollColumn = 1
Range("E65536").End(xlUp).Offset(0, 1).Select
End Sub