LoginSignup
0
1

More than 3 years have passed since last update.

Excel VBA入門 #04セルに値を表示してみよう

Posted at

VBAでセルに値を入力する方法には4種類あります。

  1. Worksheets("Sheet1").Range("A1").Value = "hello" ※Sheet1のA列1行目にhelloを入力
  2. Range("A2").Value = "hello2" ※今アクティブ中のワークシートのA列2行目にhello2を入力
  3. Cells(3, 1).Value = "hello3" ※今アクティブ中のワークシートの3行1列目にhello3を入力
  4. Cells(3, 1).Offset(1, 0).Value = "hello4" ※今アクティブ中のワークシートの3行1列目から1行0列移動したセルにhello4を入力

使用教材ドットインストールhttps://dotinstall.com/lessons/basic_excel_vba/22804

0
1
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
1