Results 1 to 3 of 3

Navigate to Class Objects in VBA via command button

  1. #1
    zashaikh is offline Competent Performer
    Windows 10 Access 2016
    Join Date
    Jan 2017
    Posts
    182

    Navigate to Class Objects in VBA via command button


    I want to navigate to a specific "Microsoft Access Class Object" in the VBA Editor Window by pressing a command button on an Access Form.

    All I have so far is this:

    Application.VBE.MainWindow.Visible = True

    This code opens the VBA Editor window for me. I do not know how to make it open the specific object I care about though.

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    48,566
    I am not understanding the objective. What object do you want to open? Why would you need to open the VBE?
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    Join Date
    Mar 2019
    Location
    Netherlands
    Posts
    8
    You could try this:

    Application.VBE.VBProjects("TestAnything").VBCompo nents("Class1").Activate

    Replace "TestAnything" with your active project name
    Replace "Class1" with the class you want to see

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

Similar Threads

  1. Button to navigate between tabs
    By Bradex in forum Forms
    Replies: 6
    Last Post: 03-17-2016, 08:04 PM
  2. Implementing Custom Class Objects-Where should they go?
    By Monterey_Manzer in forum Database Design
    Replies: 5
    Last Post: 04-07-2014, 12:15 PM
  3. Replies: 3
    Last Post: 08-04-2013, 07:11 AM
  4. Replies: 1
    Last Post: 07-27-2010, 02:27 PM
  5. Replies: 2
    Last Post: 03-25-2010, 12:11 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
  •  
Tech Forums: Microsoft Office Forums