Created
February 7, 2018 04:49
Star
You must be signed in to star a gist
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Private Sub Worksheet_SelectionChange(ByVal Target As Range) | |
'Hủy bỏ lệnh to màu cho vùng A1:Z1000 | |
With Range("A1:Z1000").Interior | |
.Pattern = xlNone | |
.TintAndShade = 0 | |
.PatternTintAndShade = 0 | |
End With | |
'Thực hiện tô màu cho ô được chọn | |
With Target.Interior | |
.Pattern = xlSolid | |
.PatternColorIndex = xlAutomatic | |
.Color = 65535 | |
.TintAndShade = 0 | |
.PatternTintAndShade = 0 | |
End With | |
End Sub |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment