ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Menus on a User Form (https://www.excelbanter.com/excel-programming/278042-menus-user-form.html)

Brian Stigler

Menus on a User Form
 
Can you put menus on a user form? I'm guessing no... but just wondering if
anyone has come up with a slick way to accomplish something like this.

Thanks



Mick[_4_]

Menus on a User Form
 
Brian,
You might enjoy playing with this that hides the active
menu bar and replaces it with a temporary menu bar that's
docked along the right side of the application window and
protected from the user:

Set oldMbar = CommandBars.ActiveMenuBar
Set newMbar = CommandBars.Add _
(Name:="newMenubar", Position:=msoBarRight, _
MenuBar:=True, temporary:=True)
With newMbar
.Visible = True
.Protection = msoBarNoMove
End With


-----Original Message-----
Can you put menus on a user form? I'm guessing no...

but just wondering if
anyone has come up with a slick way to accomplish

something like this.

Thanks


.



All times are GMT +1. The time now is 02:56 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com