Adding the Compile control with ID 578 in the Standard command bar in the VBIDE environment gives a different result when done by VBA or manually:
Application.VBE.CommandBars("Standard").Controls.Add 1, 578
gives:
In edit mode:
While adding the control manually
gives:
(by design it gives the name of the current VBE Project)
In edit mode:
Both controls have the same ID, but they act differently, as the first one does nothing, while the second one compiles the project.
Is this a bug or do I need another ID to get the second version?


Reply With Quote
