Sign in with Microsoft
Sign in or create an account.
Hello,
Select a different account.
You have multiple accounts
Choose the account you want to sign in with.

DocVariable 域代碼會插入指派給檔 變數字串。 每份檔都有一組變數,可由 Microsoft Visual Basic for Applications 程式設計語言新增和參照。 此欄位可讓您在檔案中顯示檔案變數的內容。

附註: 如需文件變數的詳細資訊,請在 Visual Basic for Applications 說明中搜尋 Variables 屬性。 如果未安裝 [說明],請再次執行安裝程式來安裝它。

語法

當您在檔案中檢視 DocVariable 域代碼時,語法看起來像這樣:

{ DOCVARIABLE “Name}

附註:  功能變數代碼會指示功能變數該顯示的內容。 功能變數結果是指評估功能變數代碼之後,顯示在文件中的內容。 若要切換檢視功能變數代碼和功能變數代碼結果,請按 Alt+F9。

指示

"名稱"

檔變數的名稱

Need more help?

Want more options?

探索訂閱權益、瀏覽訓練課程、瞭解如何保護您的裝置等等。

社群可協助您詢問並回答問題、提供意見反應,以及聆聽來自具有豐富知識的專家意見。

Was this information helpful?

How satisfied are you with the translation quality?
What affected your experience?
By pressing submit, your feedback will be used to improve Microsoft products and services. Your IT admin will be able to collect this data. Privacy Statement.

Thank you for your feedback!

×