Results 1 to 1 of 1

Thread: Inserting Compile Control (ID ) in VBIDE CommandBar gives unexpected result

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Feb 2020
    Posts
    22

    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:
    Name:  VBIDE 1.jpg
Views: 205
Size:  15.6 KB

    In edit mode:
    Name:  VBIDE 2.jpg
Views: 217
Size:  252.1 KB


    While adding the control manually
    Name:  VBIDE 3.jpg
Views: 206
Size:  188.4 KB

    gives:
    Name:  VBIDE 4.jpg
Views: 191
Size:  21.2 KB
    (by design it gives the name of the current VBE Project)

    In edit mode:
    Name:  VBIDE 5.jpg
Views: 194
Size:  66.3 KB

    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?
    Last edited by BartH_NL; Feb 6th, 2024 at 07:45 AM. Reason: images were wrong placed

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width