Private Sub cmdDelSelectRow_Click()
ActiveSheet.Unprotect Password:="npssadmin"
Dim rng As Range
On Error Resume Next
With Selection.Cells(1)
Set rng = Intersect(.EntireRow, ActiveCell.ListObject.DataBodyRange)
On Error GoTo 0
If rng Is Nothing Then
MsgBox "Please select a cell within a row that you want to delete.", vbCritical
Else
If rng.HasFormula = False Then rng.Delete
End If
End With
'ListObjects("NPSS_quote").ListColumns("10%Increase").DataBodyRange.Value = "1"
Application.EnableEvents = True
'ActiveSheet.Protect Password:="npssadmin"
End Sub
Private Sub cmdDelSelectRow_Click()
ActiveSheet.Unprotect Password:="npssadmin"
Dim rng As Range
On Error Resume Next
With Selection.Cells(1)
Set rng = Intersect(.EntireRow, ActiveCell.ListObject.DataBodyRange)
On Error GoTo 0
If rng Is Nothing Then
MsgBox "Please select a cell within a row that you want to delete.", vbCritical
End If
If rng.Offset(1).HasFormula = True Then
rng.Delete
Else
Exit Sub
End If
End With
'ListObjects("NPSS_quote").ListColumns("10%Increase").DataBodyRange.Value = "1"
Application.EnableEvents = True
'ActiveSheet.Protect Password:="npssadmin"
End Sub
=TEXT(DATE(YEAR(A5),IF(DAY(A5)<26,MONTH(A5),MONTH(A5)+1),1), "mmmm")
=TEXT(DATE(YEAR(A5),IF(DAY(A5)<26,MONTH(A5),MONTH(A5)+1),1), "yyyy")
=CONCATENATE(AA5+1," - ",AA5+2)
=IF(MONTH(A5)<7,YEAR(A5)-1,YEAR(A5))
=IF(MONTH(A5)<7,YEAR(A5),YEAR(A5)+1)
=CONCATENATE(AG5," - ",AH5)
=CONCATENATE(AI5," ","NPSS Work Allocation Sheet.xlsm")
=CONCATENATE(AI5," ","Internal Work Allocation Sheet.xlsm")