0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

【VBA】ファイルパスを設定する(カレントパス)

Last updated at Posted at 2025-04-12

カレントパスを使用したファイルのパスを設定する。
(別の任意の場所をパスに指定することもできる)

・パスの指定
currentPath = ThisWorkbook.Path

' 開きたいファイル名を指定(例: "example.xlsx")
filename = "test.xlsx"

・上記の内容を使用して、フルパスを設定する
fullPath = currentPath & "\" & filename
0
0
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
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?