| 
    
     |  | こんにちは。かみちゃん です。 
 > 横の場合は、どうすればよろしいですか?
 
 For Each〜を使った方法が横へ交互の方法です。
 縦方向へ交互というのであれば、以下のような感じになると思います。
 Sub Macro2()
 Dim i As Integer
 Dim c As Range
 Dim ColumnNo As Integer, RowNo As Long
 
 i = 0
 '選択範囲
 For ColumnNo = Selection.Column To Selection.Column + Selection.Columns.Count - 1
 For RowNo = Selection.Row To Selection.Row + Selection.Rows.Count - 1
 Select Case i Mod 2 'セル位置を交互に判定
 Case 0
 Cells(RowNo, ColumnNo).Interior.ColorIndex = 2 '白
 Case 1
 Cells(RowNo, ColumnNo).Interior.ColorIndex = 3 '赤
 End Select
 i = i + 1
 Next
 Next
 End Sub
 
 |  |