Im making a macro with a userform and i would like to have a menu with (file , new, help .... ) in my userform
is it possible?
Thanks for your answers
I added Multiple tabs to it see sample below just to get a better feel for the logic
Check this out its not perfect, but I used something close to it
THanks russel but this macro create a new user form with menu how i can create the menu on an already existing form?
Yeah you can do this on an existing form. You can use labels and a list that unhides after you click the label. I autopopulate the drop down using the
ListBox1.AddItems "Save As"
Then you will want something like
Thats the way I kind of went about it.
hi russel please can you give a more simple exemple because i got real difficulties to undestund wath you mean , im new on solidworks sorry for that
Please someone Help im really out of time for my project i will be gratfull all my life
I will try to make some time today to send you a sample of what I have done
Here is a sample Macro I created let me know if this will help you. Click File once the menu appears, and click it again to have it disappear.
P.S. Remember that Userforms do not show up in front of solidworks for that you may want to visit other places on this forum. This was just quick and dirty so you could continue working. Just open in to vb in Solidworks using this iconand hit F5 to run it. Let me know what you think. If you need anymore help I will see what I can do for you.
Here is an updated version. I showed how to do event handling in the code. The "Exit" under "File" works. Just to show you how to make events happen
I know this is the way I think most people do it in VBA. Please let me know if this sample helps you out. Thanks
Solved than you very much
Yep Anytime if you have any issues with it just shoot me a personal email listed on my page
Retrieving data ...