重置菜单和工具栏到默认状态
引用 Microsoft Office 9.0 Object Library
执行如下过程:
Public Sub EnableDefaultMenu()
Dim oBar As CommandBar
Set oBar = CommandBars("Menu Bar")
oBar.Reset
End Sub
恢复默认菜单和工具栏
注:Menu Bar是指ACCESS的主菜单
用这个也可以
Public Sub EnableDefaultMenu()
Dim oBar As CommandBar
Set oBar = CommandBars("Menu Bar")
oBar.Reset
End Sub
其它版主的方法:
道高一尺,魔高一丈,看一看微软的重置个性化菜单的另一方法(部分摘录和翻译):
◎◎◎ 将程序的 PIP 文件重命名 ◎◎◎
1.右键单击 Windows『开始』并选中『资源管理器』.
2.根据你的操作系统浏览下面的文件夹.
※ Microsoft Windows 2000 or Microsoft Windows XP :
C:\Documents and Settings\ username \Application Data\Microsoft\Office
※ Microsoft Windows 98 or Microsoft Windows Millennium Edition (Me) :
C:\WINDOWS\Application Data\Microsoft\Office
※ Microsoft Windows 98, Microsoft Windows Me with profiles enabled, or Microsoft Windows NT 4.0 :
C:\WINDOWS\Profiles\ username \Application Data\Microsoft\Office