目次
複数のセルを選択して何らかの処理をしてみます。
まずプロシージャ名の変更です。
プロシージャ名 → CellsChange
1)Range(“A1″,”B3”).value
,(カンマ)で区切る方法ですね。
Range("A1", "B3").Value = "hello"

2)Range(“A5:C7”).Value
:(コロン)で区切る方法ですね。
Range("A5:C7").Value = "hello2"

3)Range(“9:9”).Value
行選択ですね。
Range("9:9").Value = "hello3"

4)Range(“D:D”).Value
列選択ですね。
Range("D:D").Value = "column4"

Cells.Clear
では最後に、セルの内容を全て削除してみましょう。
Cells.Clear

コメント