Adding and deleting a menuitem at runtime

Posted on 1998-10-11
Last Modified: 2010-04-30
Is this true, or faked, as I am thinking.  I can make a control array, and set it to invisible, and then set it to visible, but is that being dynamic?
If so, can someone show me a little sample code to add and delete a menuitem at runtime please.

Question by:menuguy
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2

Accepted Solution

a111a111a111 earned 200 total points
ID: 1439250
Option Explicit

Private Sub nmuMenu1_Click()
nmuMenu2.Visible = True

End Sub
Private Sub nmuMenu2_Click()
nmuMenu2.Visible = False

End Sub


Expert Comment

ID: 1439251
If you need the complete project you can download it:

Author Comment

ID: 1439252
I have found what I was looking for, create the menu array, and then use load menu(1), and once done remove with unload menu(1).

Thanks anyway, I probably didn't make my question clear enough.

Featured Post

SharePoint Admin?

Enable Your Employees To Focus On The Core With Intuitive Onscreen Guidance That is With You At The Moment of Need.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

690 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question