Skip to content

Instantly share code, notes, and snippets.

@cocodrips
Created July 31, 2015 10:05
Show Gist options
  • Save cocodrips/808071ec847ee27abd96 to your computer and use it in GitHub Desktop.
Save cocodrips/808071ec847ee27abd96 to your computer and use it in GitHub Desktop.

VBA超入門

  • 変数宣言

Dim hoge As 型

  • 配列

    • 宣言 Dim array() As 型
    • i番目の要素へのアクセス array(i)
    • 長さa UBound(array)
  • 関数

    • 引数がない関数 Sub 戻り値名(引数(カンマ区切り)) As 戻り値型
    • 引数のある関数 Function
  • セルが空かどうか IsEmpty(Cell(行, 列))

  • デバッグプリント Debug.Print

セルやシートの操作

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment