Document.FullName プロパティ (Publisher)

パスとファイル名を含む作業中の文書を保存したファイルの完全名を表す 文字列 を返します。 読み取り専用です。

構文

Fullname

Document オブジェクトを表す変数。

戻り値

文字列

注釈

FullName プロパティを使用すると、Path プロパティと Name プロパティから返されるパスとファイル名の両方を返すことができます。

次の使用例は、 パス名前 、および FullName プロパティの違いを示します。 次の使用例は、わかりやすい文書が既定以外のフォルダーに保存されている場合。

Sub PathNames() 
 
 Dim strPath As String 
 Dim strName As String 
 Dim strFullName As String 
 
 strPath = Application.ActiveDocument.Path 
 strName = Application.ActiveDocument.Name 
 strFullName = Application.ActiveDocument.FullName 
 
 ' Note the file name & path differences 
 ' while executing. 
 MsgBox "The path is: " & strPath 
 MsgBox "The file name is: " & strName 
 MsgBox "The path & file name are: " & strFullName 
 
End Sub

サポートとフィードバック

Office VBA またはこの説明書に関するご質問やフィードバックがありますか? サポートの受け方およびフィードバックをお寄せいただく方法のガイダンスについては、Office VBA のサポートおよびフィードバックを参照してください。