Consulting

Results 1 to 4 of 4

Thread: Excel's Visual Basic Editor Window

  1. #1
    VBAX Tutor Erdin? E. Ka's Avatar
    Joined
    Sep 2006
    Location
    Bursa
    Posts
    264
    Location

    Excel's Visual Basic Editor Window

    Hi all,

    I need to have a list of the all menu names, symbols and shortcut keys of Excel 2003's Visual Basic Editor Window...

    Example of the list:
    Main Menu Name - Option - Symbol - Shortcut
    File - Save Book1 - {Disket Image} - CTRL + S
    ...
    ...
    ...
    Help - About Visual Basic - . - .

    { And if it possible; I need a list of Right Click Menu in VBE like above... }


    Thanks in advance...
    Erdin? E. Kara?am | Loves from Bursa city in Republic of T?rkiye

  2. #2
    VBAX Tutor Erdin? E. Ka's Avatar
    Joined
    Sep 2006
    Location
    Bursa
    Posts
    264
    Location
    any ideas?
    Erdin? E. Kara?am | Loves from Bursa city in Republic of T?rkiye

  3. #3
    Administrator
    2nd VP-Knowledge Base
    VBAX Master malik641's Avatar
    Joined
    Jul 2005
    Location
    Florida baby!
    Posts
    1,533
    Location
    Hey Erdinc,

    I didn't want to post this yet, but I want to show you that I was working on it:

    [VBA]Public Sub getMenuDetails()
    Dim ctr1 As Object
    Dim ctr2 As Object
    Dim str As String
    On Error Resume Next
    For Each ctr1 In Application.VBE.CommandBars("Menu Bar").Controls
    For Each ctr2 In ctr1.Controls
    If (ctr2.Visible = True) Then
    str = str & "Menu: " & ctr1.Caption & " | Name: " & ctr2.Caption & " | Shortcut: " & ctr2.ShortcutText & vbNewLine
    End If
    Next ctr2
    Debug.Print str
    Next ctr1
    End Sub[/VBA]


    That's all I have so far, but I ran out of time the other day. I'd like to try to finish this up tonight/tomorrow. Maybe this will help you figure something out in the meantime.




    New to the forum? Check out our Introductions section to get to know some of the members here. Feel free to tell us a little about yourself as well.

  4. #4
    VBAX Tutor Erdin? E. Ka's Avatar
    Joined
    Sep 2006
    Location
    Bursa
    Posts
    264
    Location
    Hi malik,

    That's a very good work. I very thank you to do this.

    But, if we can complete all of that, thats gonna be really perfect...

    Loves from Bursa...
    Erdin? E. Kara?am | Loves from Bursa city in Republic of T?rkiye

Posting Permissions

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