Results 1 to 2 of 2
  1. #1
    MatthewR is offline Competent Performer
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jun 2015
    Posts
    118

    Set Property for All Open Forms


    Hi, folks. I'd like to use VBA to set the ShortcutMenu property on all loaded forms to false. Here's what I tried and it didn't work. Any suggestions?

    Code:
        Dim DbF     As Form
        Dim DbO     As Object
     
        Set DbO = Application.Forms 
        
        For Each DbF In DbO 
                DbF.ShortcutMenu = False
        Next DbF

  2. #2
    MatthewR is offline Competent Performer
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jun 2015
    Posts
    118
    Nevermind. I think this code works, but there's an issue with the ShortcutMenu property. It seems that one needs to close the form and reopen it in order for the property change to take effect.

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

Similar Threads

  1. Property sheet will not open
    By lawdy in forum Access
    Replies: 1
    Last Post: 02-04-2014, 09:26 PM
  2. Replies: 3
    Last Post: 10-23-2013, 08:11 AM
  3. Replies: 2
    Last Post: 08-07-2013, 07:44 AM
  4. Using VBA to set up all forms property
    By aspfun in forum Programming
    Replies: 1
    Last Post: 05-10-2013, 01:20 PM
  5. 'On Open' Property
    By emilylu3 in forum Forms
    Replies: 1
    Last Post: 12-08-2005, 02:28 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