expression.DisplayDesignTimeUI
expression Required. An expression that returns one of the objects in the Applies To list.
Example
This example sets Spreadsheet1 so that the design-time Commands and Options window will be displayed at run time.
Spreadsheet1.DisplayDesignTimeUI = True