Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As Boolean)
Sheet1.Unprotect Password:=3581
If (ActiveCell.Column = 28 Or ActiveCell.Column = 31 Or ActiveCell.Column = 34 Or ActiveCell.Column = 39 Or ActiveCell.Column = 44 Or ActiveCell.Column = 47 Or ActiveCell.Column = 51) And _
ActiveCell.Row > 25 Then
If ActiveCell.Value = "P" Then
ActiveCell.Value = ""
Else
ActiveCell.Value = "P"
ActiveCell.Font.Name = "Wingdings 2"
End If
ActiveCell.Offset(0, 1).Select
End If
Sheet1.Protect Password:=3581, AllowInsertingHyperlinks:=True, AllowFiltering:=True
Sheet1.EnableSelection = xlUnlockedCells
End Sub
Sub HideArrowsRange()
Dim c As Range
Dim i As Integer
Dim rng As Range
Set rng = Range("B25:BA25")
i = rng.Cells(1, 1).Column - 1
Application.ScreenUpdating = False
For Each c In Range("B25:BA25")
Select Case c.Address
Case "$B$25", "$C$25", "$D$25", "$G$25", "$H$25", "$I$25", "$J$25", "$K$25", "$L$25", "$M$25", "$N$25", "$O$25", "$P$25", "$Q$25", "$R$25", "$S$25", "$U$25", "$W$25", "$Z$25", "$Y$25", "$AA$25", "$AC$25", "$AD$25", "$AF$25", "$AG$25", "$AI$25", "$AJ$25", "$AK$25", "$AL$25", "$AN$25", "$AO$25", "$AP$25", "$AQ$25", "$AS$25", "$AT$25", "$AV$25", "$AW$25", "$AX$25", "$AZ$25"
c.AutoFilter Field:=c.Column - i, _
Visibledropdown:=False
Case Else
c.AutoFilter Field:=c.Column - i, _
Visibledropdown:=True
End Select
Next
Application.ScreenUpdating = True
End Sub
Private Sub Worksheet_Change(ByVal Target As Range)
If Not Application.Intersect(Target, [AH26:AH5025]) Is Nothing Then
Range("AJ" & Target.Row).Value = Date
End If
End Sub
Any help would be greatly appreciated
Bookmarks