Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
既に保存されている Word 文書があり、既存の保存ディレクトリや完全なファイル パス (つまり、C:\Users\Public\Documents\testDoc.docx) を取得する必要があります。
これはマクロ/VBAからどのように取得できますか?
ActiveDocument.FullName
上記は、ファイル名を含むドキュメントへの完全なパスを示しています。
ActiveDocument.Path
上記は、ドキュメントが保存されているディレクトリを示しています。
ActiveDocument.Name
上記は、パス情報なしでドキュメントの名前を示します。