Application.AutoFormatAsYouTypeReplaceHyperlinks 屬性 (Excel)
如果 Microsoft Excel 會在您輸入超連結時自動設定其格式則為 True (預設值)。 如果 Microsoft Excel 不會在您輸入超連結時自動設定其格式則為 False。 可讀寫的 Boolean。
語法
運算式。AutoFormatAsYouTypeReplaceHyperlinks
expression 代表 Application 物件的變數。
範例
在此範例中,Microsoft Excel 會判斷是否啟用在輸入超連結時自動格式化超連結的能力,並通知使用者。
Sub CheckHyperlinks()
' Determine if automatic formatting is enabled and notify user.
If Application.AutoFormatAsYouTypeReplaceHyperlinks = True Then
MsgBox "Automatic formatting for typing in hyperlinks is enabled."
Else
MsgBox "Automatic formatting for typing in hyperlinks is not enabled."
End If
End Sub
支援和意見反應
有關於 Office VBA 或這份文件的問題或意見反應嗎? 如需取得支援服務並提供意見反應的相關指導,請參閱 Office VBA 支援與意見反應。
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應