Results 1 to 6 of 6
  1. #1
    Sarah.M is offline Novice
    Windows 10 Access 2016
    Join Date
    Oct 2021
    Posts
    17

    Hide File Quick Access Toolbar Close Minimize Maximize buttons by XML Code

    Hi, Plz note, My VBA is disabled in my pc, I can use only XML Code, Expression builder, Macros, Queries, Tables, Forms and Reports only.

    Kindly I want XML code to hide (File, Customize Quick Access Toolbar , Close, Manimazie, Maximize buttons)
    Thanks


    Click image for larger version. 

Name:	1.png 
Views:	22 
Size:	6.1 KB 
ID:	46495


  2. #2
    isladogs's Avatar
    isladogs is offline Access MVP / VIP
    Windows 10 Office 365
    Join Date
    Jan 2014
    Location
    Somerset, UK
    Posts
    6,204
    Why / how is VBA disabled in your computer? I didn't think that was possible. Perhaps we can help you fix that?
    You can only hide the File menu and QAT if you hide the entire ribbon. You can do that using VBA and Access options but I doubt its possible using XML.
    Have a look at my article on Access security in case you are able to implement any of any of the items covered. See Improve Security 2 - Mendip Data Systems

    As for the minimize/maximize/close buttons, the easiest method is to hide the entire application window Control Application Interface - Mendip Data Systems but again this requires vba code.
    Make sure you have an alternative method of closing your app if you do explore that route e.g. a Quit button
    Last edited by isladogs; 10-28-2021 at 12:38 PM.
    Colin Riddington, Access MVP, Website, email
    The more I learn, the more I know I don't know. When I know I don't know, I keep quiet!

  3. #3
    CJ_London is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,937
    @Colin - you might find this link of interest https://support.microsoft.com/en-gb/...a-5983db31823c

    Interestingly it says you cannot install MS Access if vba is disabled which is a bit of a paradox since Sarah appears to have Access installed

    But would also appear to be an old article since it refers to old versions of access/excel/office so perhaps the situation has changed

    @Sarah - agree with Colin, one way or another, you would need to use vba or you might have some luck using C# see this link https://stackoverflow.com/questions/...sizable-window. You might want to talk to your IT dept about enabling VBA on your machine - but that would only be worthwhile if your users also have VBA enabled.

    Does sound like safety overkill and perhaps your company should not be using MS office at all. I would imagine sophisticated excel users will be really struggling

  4. #4
    isladogs's Avatar
    isladogs is offline Access MVP / VIP
    Windows 10 Office 365
    Join Date
    Jan 2014
    Location
    Somerset, UK
    Posts
    6,204
    Hi Chris
    That's an interesting article
    I'd forgotten that VBA is one of the checkboxes that can be disabled during Office installation. Doing that would make Access almost useless even if it can be installed.
    If disabled using system policies after installation, that might explain why the OP states they have Access.

    However, if its really impossible to use VBA then in my opinion there is little point having the full version of Access at all.
    Access runtime would have similar functionality but without the potential issues described in the article.

    It sounds like either an installation error or an over-zealous network support person has made a wrong judgement call.
    Colin Riddington, Access MVP, Website, email
    The more I learn, the more I know I don't know. When I know I don't know, I keep quiet!

  5. #5
    Sarah.M is offline Novice
    Windows 10 Access 2016
    Join Date
    Oct 2021
    Posts
    17
    VBA disabled by my company for Security reasons, becuse VBA some people can do bad codes on it

  6. #6
    CJ_London is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,937
    they can do bad codes with pretty much any language. At least with vba you are prompted to allow the code to run - unless you are running a very old version of office when such prompts were not available. You are using 2016 - that is why you need to use trusted locations. You might find this link from 7 years ago of interest https://www.howtogeek.com/171993/mac...-be-dangerous/

    Usual security rules apply of course - don't open anything you don't trust - and of course use suitable protection from malware such as norton

    Good luck with your project but think you will find using macros very limiting.

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

Similar Threads

  1. Quick Access Toolbar
    By howlettb in forum Access
    Replies: 1
    Last Post: 02-26-2016, 01:34 PM
  2. Replies: 15
    Last Post: 04-11-2015, 08:15 AM
  3. Quick access toolbar ?
    By chetandivekar in forum Sample Databases
    Replies: 3
    Last Post: 06-11-2014, 08:59 AM
  4. Disable/Hide Quick Access Toolbar
    By Jackal in forum Security
    Replies: 10
    Last Post: 11-22-2012, 05:25 PM
  5. Replies: 1
    Last Post: 06-20-2010, 05:04 AM

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