Results 1 to 3 of 3
  1. #1
    redbull's Avatar
    redbull is offline Competent Performer
    Windows XP Access 2010 32bit
    Join Date
    Mar 2012
    Location
    Missouri
    Posts
    480

    Programming the VBA editor, VBE & Ultra Meta

    Good morning,


    Unlike a lot of posts here, this isn't going to be a "how do I do this" kind of post.

    I was reading "http://www.cpearson.com/excel/vbe.aspx Programming The VBA Editor" & "http://www.cpearson.com/excel/vbemenus.aspx Creating Menu Items In The VBA Editor"


    And that made me start to wonder, can we change how VBA itself acts?

    For instance, when one of my users encounter an error they get the standard debug option. Now most users hit debug, take a screenshot and email me. But would it be possible to just change what the debug option is doing? (Or I could write better code, but meh)

    Or maybe a password lock on code, and if the password is entered incorrectly 3 times it would erase all the modules and save/overwrite them.



    So I guess the question is this, has anyone here ever had a reason to get into the VBE side of things? The meta of all metas? IF so, where can I get started?

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,525
    if the code has error traps, the user wont get these debug errors.
    it would give a error # /location. Then you can solve it.

    Code:
    sub Mysub()
    dim var,var3,var2
    on error goto ErrTrap
    
    ' code
    'code
    
    exit sub  ' end of normal code
    
    ErrTrap:    'start of err trap
    msgbox err.description,vbWarning, "MySub::" & err
    
    end Sub   'end of sub

  3. #3
    orange's Avatar
    orange is offline Moderator
    Windows 8 Access 2010 32bit
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,725

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 4
    Last Post: 05-29-2015, 09:36 AM
  2. Open VBA editor
    By abhijeetkadam in forum Security
    Replies: 1
    Last Post: 11-19-2014, 08:10 AM
  3. Equation Editor in access?
    By Javier Hernández in forum Access
    Replies: 1
    Last Post: 04-23-2014, 11:47 AM
  4. HTML Editor
    By mystifier in forum Forms
    Replies: 3
    Last Post: 11-11-2010, 05:51 AM
  5. Text editor
    By smiles_chicago in forum Forms
    Replies: 0
    Last Post: 10-21-2008, 12:38 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums