1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

VBAで閉じたブックからセルの値を取り出す

Last updated at Posted at 2013-11-27
Public Function ReadClosedBook As String
    ReadClosedBook = ExecuteExcel4Macro('C:\hoge\[Hogehoge.xlsx]Sheet1'!R5C1)
End Function

・'パス名 & [ファイル名] & シート名 'R & 行番号 & C & 列番号 で指定する。'は必須。
・セルが空白の場合は0が返ってくる。

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?