chuot0106
Thành viên gắn bó



- Tham gia
- 20/1/13
- Bài viết
- 2,567
- Được thích
- 1,670
Code của anh hải chỉ áp tô màu cho 1 cell, có lẽ lên sửa lại chút cho linh hoạt hơn!Ngứa tay quá nên nhào vô chơi tí. Thích màu nào thì cứ sửa lại màu của mấy cái shapes là được
PHP:Sub tomau() With ActiveCell.Interior If .ColorIndex <> xlNone Then .Color = xlNone Else .Color = ActiveSheet.Shapes(Application.Caller).Fill.ForeColor.RGB End If End With End Sub Sub ChuNghieng() With ActiveCell.Characters.Font If .ColorIndex <> 3 Then .ColorIndex = 3 .Italic = True Else .ColorIndex = xlAutomatic .Italic = False End If End With End Sub