Workbook.CommandBars 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得 Microsoft.Office.Core.CommandBars 物件,代表 Microsoft Office Excel 命令列。
public:
property Microsoft::Office::Core::CommandBars ^ CommandBars { Microsoft::Office::Core::CommandBars ^ get(); };
public Microsoft.Office.Core.CommandBars CommandBars { get; }
member this.CommandBars : Microsoft.Office.Core.CommandBars
Public ReadOnly Property CommandBars As CommandBars
屬性值
代表 Microsoft Office Excel 命令行的 Microsoft.Office.Core.CommandBars 物件。
備註
當活頁簿內嵌在另一個應用程式中,並透過按兩下活頁簿來啟用活頁簿時,使用屬性搭配 Workbook 物件會傳回另一個應用程式內可用的 Excel 命令行集合。 在其他情況下,搭配 Workbook 物件使用這個屬性會傳 null
回 。 沒有任何程序設計方式可以傳回附加至活頁簿的命令行集。 命令行與應用程式相關聯,而不是活頁簿。 這個屬性存在於活頁簿上,因此當 Excel 不是應用程式時,您可以存取 Excel 應用程式命令行。