Advertisement
Guest User

Untitled

a guest
Mar 30th, 2017
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Excel.Range, Cancel As Boolean)
  2. finalrow = Cells(Rows.Count, 1).End(xlUp).Row
  3.  
  4. If Not Application.Intersect(ActiveCell, Range("A9:A" & finalrow)) Is Nothing Then
  5. If Target.Font.Color = vbRed Then
  6. Target.EntireRow.Font.Color = vbBlack
  7. Else
  8. Target.EntireRow.Font.Color = vbRed
  9. End If
  10. End If
  11. Cancel = True
  12. End Sub
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement