【发布时间】:2009-07-22 11:27:24
【问题描述】:
无需打开 Windows 资源管理器。我想从 Word VBA 中检查这一点。
谢谢。
编辑:
此代码现在可以使用:
Set WshShell = CreateObject("WScript.Shell")
If WshShell.RegRead("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\HideFileExt") = 0 Then
MsgBox Prompt:="In Windows Explorer, set the folder options to hide file extensions of known file types." _
& vbCrLf & vbCrLf & " This prevents the file extension from appearing as part of the document number in" _
& "the document body and page headers.", Buttons:=vbOKOnly + vbCritical, Title:="Critical"
End If
【问题讨论】:
标签: vba windows-explorer file-extension ms-word