5 Attachment(s)
Inserting Compile Control (ID ) in VBIDE CommandBar gives unexpected result
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:
Attachment 190373
In edit mode:
Attachment 190374
While adding the control manually
Attachment 190378
gives:
Attachment 190379
(by design it gives the name of the current VBE Project)
In edit mode:
Attachment 190375
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?