這是我使用的代碼:我使用下面的XML不隱藏這些按鈕
<customUI xmlns="http://schemas.microsoft.com/office/2006/01/customui">
<ribbon startFromScratch="true">
<qat>
<documentControls>
<control
idMso="FileSaveAs"
screentip="SAVE AS..."
supertip="Click here to save this file to another location."/>
<control
idMso="WindowSwitchWindowsMenuExcel"
screentip="SWITCH EXCEL FILE"
supertip="Click here to switch from this workbook to another open excel file."/>
<control
idMso="FilePrint"
screentip="PRINT FILE"
supertip="Click here to enable the print menu."/>
</documentControls>
</qat>
</ribbon>
</customUI>
編輯
在Excel的版本:
<customUI xmlns="http://schemas.microsoft.com/office/2006/01/customui">
<ribbon startFromScratch="true"></ribbon>
</customUI>
嗨whytheq。感謝您的回答,但不幸的是這不是我在找:(我可以用它來添加一個密切的工作簿botton,但我想顯示圖片中顯示的默認關閉工作簿。 – Braulio 2014-10-08 18:05:27
您是否測試了此代碼 - 它不會在我的Excel中隱藏這些按鈕。您使用的是什麼版本的Excel? – whytheq 2014-10-08 22:00:50
是的,我已經嘗試過了.xmlns地址不適用於我,因爲我的辦公室是2010年,但是我試過的其他代碼關閉按鈕仍然不顯示:( – Braulio 2014-10-09 12:12:16