Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 2nd, 2012  |  syntax: None  |  size: 0.83 KB  |  hits: 10  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. Issues with my SelectionChange
  2. Private Sub Worksheet_SelectionChange(ByVal Target As Range)
  3.  
  4. Dim LastRow As Long
  5. If Not Intersect(Target, Range("C7,D7,E7,F7,G7,C8,D8,E8,F8,G8,C9,D9,E9,F9,G9,C10,D10,E10,F10,G10,C11,D11,E11,F11,G11")) Is Nothing Then
  6. Application.EnableEvents = False
  7.     With Selection.Borders(xlDiagonalDown)
  8.         .LineStyle = xlContinuous
  9.         .ColorIndex = xlAutomatic
  10.         .TintAndShade = 0
  11.         .Weight = xlThick
  12.         Application.EnableEvents = True
  13.     End With
  14.     With Selection.Borders(xlDiagonalUp)
  15.         .LineStyle = xlContinuous
  16.         .ColorIndex = xlAutomatic
  17.         .TintAndShade = 0
  18.         .Weight = xlThick
  19.    End With
  20.     With Selection.Font
  21.         .ThemeColor = xlThemeColorDark1
  22.         .TintAndShade = -0.249977111117893
  23.     End With
  24.     End If
  25. End Sub
  26.        
  27. Application.EnableEvents = True