0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

条件付き書式で土日に色を付けるだけなのに

条件付き書式ってややこしくないですか?
VBAなら秒でコード書けた

画像1.png

画像3.png

画像2.png


Sub 土日に色を付ける()

  Dim i As Long
  
  For i = 3 To 23
    If Cells(i, 6).Value = "土" Then
        Cells(i, 6).Interior.ColorIndex = 37
    End If
    If Cells(i, 6).Value = "日" Then
        Cells(i, 6).Interior.ColorIndex = 45
    End If
  Next i
  
End Sub
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?