リファレンス †
制御 †
For †
Select Case †
範囲指定 †
セル †
- 単一指定
Cells(row, column).Select
- 複数指定
Cells(row, column).Select
- 範囲指定
Range(Cells(row, column), Cells(row, column)).Select
- 別シートの単一セル
Sheets(name).Cells(row, column).Select
- 単一行
Rows(row).Select
- 複数行
Rows("row:row").Select
- 単一列
Columns(column).Select
処理 †
- 値
Cells(row, column).Value = "value"
- 数値を文字列として
Cells(row, column).Value = "'value"
- 数式
Cells(row, column).Value = "=formula"
文字色 †
Cells(row, column).Font.ColorIndex = color
Cells(row, column).Font.Color = RGB(0, 255, 0)
Cells(row, column).Font.Color = &Hhex
セルの色 †
Cells(row, column).Interior.ColorIndex = color
変数 †
var = value