|
-
Jul 16th, 2008, 09:52 AM
#1
[RESOLVED] Excel VBA - Add Menu Items To UserForm
After spending a fair a bit of time searching around both on VBF and the net in general, I ran across this with respect to adding a dropdown menu bar to an Excel UserForm
notionally you can't. the forms object model doesn't support menus. You can do it in VB, but not VBA. There have been some kludge workarounds, but I wouldn't recommend it unless absolutely crucial to you
Is this pretty much the case?
-
Jul 16th, 2008, 11:06 AM
#2
Hyperactive Member
Re: Excel VBA - Add Menu Items To UserForm
I have a pop up menus in my current project...
and I used to have them configured to command buttons at the top (say buttons that say File, Save, Tools, etc..), so that the pop up menu appears when clicking that command button.
Not sure if that's what you're looking for though.
-
Jul 16th, 2008, 11:38 AM
#3
Re: Excel VBA - Add Menu Items To UserForm
That is exactly what I'm looking for.
Can you post an example?
-
Jul 16th, 2008, 11:49 AM
#4
Re: Excel VBA - Add Menu Items To UserForm
A good exercise for the Heart is to bend down and help another up...
Please Mark your Thread " Resolved", if the query is solved
MyGear:
★ CPU ★ Ryzen 5 5800X
★ GPU ★ NVIDIA GeForce RTX 3080 TI Founder Edition
★ RAM ★ G. Skill Trident Z RGB 32GB 3600MHz
★ MB ★ ASUS TUF GAMING X570 (WI-FI) ATX Gaming
★ Storage ★ SSD SB-ROCKET-1TB + SEAGATE 2TB Barracuda IHD
★ Cooling ★ NOCTUA NH-D15 CHROMAX BLACK 140mm + 10 of Noctua NF-F12 PWM
★ PSU ★ ANTEC HCG-1000-EXTREME 1000 Watt 80 Plus Gold Fully Modular PSU
★ Case ★ LIAN LI PC-O11 DYNAMIC XL ROG (BLACK) (G99.O11DXL-X)
★ Monitor ★ LG Ultragear 27" 240Hz Gaming Monitor
★ Keyboard ★ TVS Electronics Gold Keyboard
★ Mouse ★ Logitech G502 Hero
-
Jul 16th, 2008, 11:49 AM
#5
Hyperactive Member
Re: Excel VBA - Add Menu Items To UserForm
When I first started I used RobDog's Guide...
http://www.vbforums.com/showthread.php?t=402050
I ran into some problems implementing the bars ( http://www.vbforums.com/showthread.php?t=473068 ), but eventually got them to work well... They really add a lot of functionality and make the project look very professional!
Hope this helps... good luck. I did spend quite some time getting these to work well, so let me know if you run into problems.
-
Jul 16th, 2008, 12:02 PM
#6
Re: Excel VBA - Add Menu Items To UserForm
Thanks, I'll take a look at both suggestions (I knew Rob had a bunch of Excel stuff out there, but I didn't realize it covered this topic).
BTW: Congrats on 3K koolsid!
-
Jul 16th, 2008, 12:06 PM
#7
Re: Excel VBA - Add Menu Items To UserForm
BTW: Congrats on 3K koolsid!
Strange it is always you who notice these things I remember you doing that for 2k as well 
Thanks
Check out the link it is amazing....
A good exercise for the Heart is to bend down and help another up...
Please Mark your Thread " Resolved", if the query is solved
MyGear:
★ CPU ★ Ryzen 5 5800X
★ GPU ★ NVIDIA GeForce RTX 3080 TI Founder Edition
★ RAM ★ G. Skill Trident Z RGB 32GB 3600MHz
★ MB ★ ASUS TUF GAMING X570 (WI-FI) ATX Gaming
★ Storage ★ SSD SB-ROCKET-1TB + SEAGATE 2TB Barracuda IHD
★ Cooling ★ NOCTUA NH-D15 CHROMAX BLACK 140mm + 10 of Noctua NF-F12 PWM
★ PSU ★ ANTEC HCG-1000-EXTREME 1000 Watt 80 Plus Gold Fully Modular PSU
★ Case ★ LIAN LI PC-O11 DYNAMIC XL ROG (BLACK) (G99.O11DXL-X)
★ Monitor ★ LG Ultragear 27" 240Hz Gaming Monitor
★ Keyboard ★ TVS Electronics Gold Keyboard
★ Mouse ★ Logitech G502 Hero
-
Jul 17th, 2008, 07:52 AM
#8
Re: Excel VBA - Add Menu Items To UserForm
 Originally Posted by koolsid
When I click on the zip file to download it, I get sent to downloadcounter.com and see no mention of menumaker_UF_API.xls
Am I missing something?
-
Jul 21st, 2008, 01:38 PM
#9
Re: Excel VBA - Add Menu Items To UserForm
Hi Hack...
I almost forgot about this one.... I guess I am growing old...
Yes, the above link is not working any more...
Here is another one that works....
http://www.dailydoseofexcel.com/arch...on-a-userform/
or you can directly download it from here
http://www.jkp-ads.com/downloadscrip...erFormMenu.zip
I personally downloaded the file and checked it... it works awesome 
Also check out several comments at the bottom...
Hope this helps...
Sorry for the delay...
A good exercise for the Heart is to bend down and help another up...
Please Mark your Thread " Resolved", if the query is solved
MyGear:
★ CPU ★ Ryzen 5 5800X
★ GPU ★ NVIDIA GeForce RTX 3080 TI Founder Edition
★ RAM ★ G. Skill Trident Z RGB 32GB 3600MHz
★ MB ★ ASUS TUF GAMING X570 (WI-FI) ATX Gaming
★ Storage ★ SSD SB-ROCKET-1TB + SEAGATE 2TB Barracuda IHD
★ Cooling ★ NOCTUA NH-D15 CHROMAX BLACK 140mm + 10 of Noctua NF-F12 PWM
★ PSU ★ ANTEC HCG-1000-EXTREME 1000 Watt 80 Plus Gold Fully Modular PSU
★ Case ★ LIAN LI PC-O11 DYNAMIC XL ROG (BLACK) (G99.O11DXL-X)
★ Monitor ★ LG Ultragear 27" 240Hz Gaming Monitor
★ Keyboard ★ TVS Electronics Gold Keyboard
★ Mouse ★ Logitech G502 Hero
-
Jul 22nd, 2008, 06:33 AM
#10
Re: Excel VBA - Add Menu Items To UserForm
Thanks....I will check it out.
-
Sep 12th, 2008, 08:11 AM
#11
Re: [RESOLVED] Excel VBA - Add Menu Items To UserForm
Although it took a while, I finally got the chance to play with the links koolsid posted, and got what I needed from them.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|