Hi

I want to add menu items in my program to be created at run time . However I m running a code which is successfully added the menu , when the form is loaded but I am not able to call it from outside that is I want that suppose there is a button on my form , if someone clicks on that button then a new menu item should be added in the list .
the code which I m running i s

For i = 1 To UBound(strAnalyzer)
Load mnuQsurf(i)
mnuQsurf(i).Caption = "analyzer " & i
mnuQsurf(i).Visible = True
Next

but when I m calling this code on the button click it says

"Object Already loaded"

how can this problem be resolved ????