hungdiep85
Thành viên thường trực




- Tham gia
- 1/6/09
- Bài viết
- 218
- Được thích
- 23
- Giới tính
- Nam
Sub Vang()
If UCase$(Left([A1], 1)) = "V" Then
Range("B1").Select
With Selection.Interior
.Pattern = xlSolid
.PatternColorIndex = xlAutomatic
.Color = 65535
End With
Else
End If
End Sub
[B]Sub Do_()
[/B] If UCase$(Left([A1], 1)) <> "V" Then
Range("B1").Select
With Selection.Interior
.Pattern = xlSolid
.PatternColorIndex = xlAutomatic
.Color = 255
' [COLOR=#0000ff] .TintAndShade = 0[/COLOR] '
' [COLOR=#0000ff] .PatternTintAndShade = 0[/COLOR] '
End With
End If
[B]End Sub
[/B]
PHP:Sub Vang() If UCase$(Left([A1], 1)) = "V" Then Range("B1").Select With Selection.Interior .Pattern = xlSolid .PatternColorIndex = xlAutomatic .Color = 65535 End With Else End If End Sub
Mã:[B]Sub Do_() [/B] If UCase$(Left([A1], 1)) <> "V" Then Range("B1").Select With Selection.Interior .Pattern = xlSolid .PatternColorIndex = xlAutomatic .Color = 255 ' [COLOR=#0000ff] .TintAndShade = 0[/COLOR] ' ' [COLOR=#0000ff] .PatternTintAndShade = 0[/COLOR] ' End With End If [B]End Sub [/B]