![]() |
Call CustomizeOption window by code |
Post Reply ![]() |
Author | |
Bush ![]() Newbie ![]() Joined: 06 September 2004 Status: Offline Points: 4 |
![]() ![]() ![]() ![]() ![]() Posted: 08 September 2004 at 4:17am |
Somebody knows how to call the "CustomizeOption Window" by code?
|
|
![]() |
|
Boyd ![]() Senior Member ![]() Joined: 08 December 2003 Location: United States Status: Offline Points: 285 |
![]() ![]() ![]() ![]() ![]() |
There's no straightforward way to do this. My workaround is to create a dummy popup menu and then add a control to that menu that has the same ID as the 'Customize' control that appears on the built-in customize menu. You can then use the 'Execute' method of that control to trigger the 'Customize' dialog. I just wrapped the routine up in a function so that I can easily call it for any of my CommandBars instances. I've been using this approach without any problems whatsoever. Here's some sample code: Public Function CustomizeToolbar(ByRef cb as CommandBars) Simply call this function and pass a reference to the CommandBars object you want to customize. Enjoy!! |
|
![]() |
|
Bush ![]() Newbie ![]() Joined: 06 September 2004 Status: Offline Points: 4 |
![]() ![]() ![]() ![]() ![]() |
Thx a lot Boyd, I added .Add(xtpControlButton, 35001, "Adapt...") in the frmLoad and it works. |
|
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |