MS Access 2007 Customize Office Menu Button

Posted on 2010-01-11
Medium Priority
Last Modified: 2013-11-29
Hi all,
     I have an Access 2007 database that has a complete custom Ribbon.  The loading of the ribbon, callbacks, loading images, screen tips, enhanced screen tips, etc, etc. works perfectly.

    My issue is with the customization of the Office Menu button.  As is stands right now I can hide the MRU (via VBA), and all buttons on the Office Menu (via XML) except 'Exit Access', this button I can only seem to disable.  

     Here is what I'm looking for:
     1.  Hide the Office button all together or,
     2.  Remove/hide the Exit Access button or,
     3.  Change the text of the Exit Access button.

     My solution has every aspect of Access hidden from the user.  The only remaining piece of the puzzle is the 'Exit Access' button on the Ofice Menu.  I would really like to find a solution to remove/change it as well.

     If you have a solution please help me solve this problem.  Please don't just post a bunch of links to Ribbon creation websites.  I have seached google and bing for hours and although they are semi useful in identifying the XML for the <OfficeMenu> element, they don't take it to the level I require.  

Thanks in advance,
aka Dataman
Question by:Data-Man
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
LVL 85

Accepted Solution

Scott McDaniel (Microsoft Access MVP - EE MVE ) earned 2000 total points
ID: 26291785
I'm not sure you can remove that. I found a couple of posts, and was even able to implement one Ribbon scheme (as you apparently did) which removed all items from the Office button ... except the Exit Access button.

As far as I know, you cannot hide the Office button. This seems to be well documented in various locations, from various MS-type sources.

If you can hide the Exit Access button, I've never seen any way to do it.

It could be possible to change the Text, but as Access handles these things differently from every other Windows programs, I'd not know where to begin.

I've posted a message in the private Access MVP newsgroups. This is monitored by the Access team contacts at Microsoft as well, so perhaps we'll get some word from the horse's mouth (so to speak).

LVL 120

Expert Comment

by:Rey Obrero (Capricorn1)
ID: 26292427
try this

docmd.showtoolbar "ribbon", actoolbarno
LVL 38

Expert Comment

ID: 26292480
Hide the Office Button? No way AFAIK
                see this link: http://www.accessribbon.de/en/index.php?FAQ
                                          go to FAQ #5 And #17

Hide or change text on Exit Access button? Maybe with Albert Kallals Ribbon Class.
                see this link: http://www.members.shaw.ca/AlbertKallal/Ribbon/ribbon.htm

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

LVL 85
ID: 26292508
cap has you as close as you can get. I just saw a reply to my query on the newsgroup about this, and this works - it removes the Office button and Ribbon. I suppose you could then show your own ribbon, but I'm not sure.
LVL 18

Author Comment

ID: 26294659
Thanks everyone,

   I looked at all your answers and did a little more reseach this morning, but to no avail.  The ShowToolbar method does hide the office menu, but it also hides the Ribbon and since Custom Ribbons are added to the end of the existing Ribbon I don't see a way to use this method.

   I did send and email to Albert and asked him if the text can be changed using his custom ribbon class.

   I will keep this question open for a few days and see if anyone post some additional information.  I will also post the reply from Albert, if he sends me a response.

   Thanks again for your help, but it looks like it just can't be done.

LVL 18

Author Closing Comment

ID: 31675663
Thanks for all who answered my question.  The bottom line is that no one knows how to do it.  I'm not convinced that it cannot be done, but spending hours searching the web and consulting other experts has turned up nothing.  If you do use the ShowToolbar method it hides the office menu button, but it also hides the ribbon which doesn't help, I need to have my custom Ribbon displayed.

Thanks again for all your help.  I have acquired a massive amount of knowledge with respect to creating custom ribbon solutions in Access, drop me a line if you need some help.

Mike (aka Data-Man)

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Did you know that more than 4 billion data records have been recorded as lost or stolen since 2013? It was a staggering number brought to our attention during last week’s ManageEngine webinar, where attendees received a comprehensive look at the ma…
Microsoft Access is a place to store data within tables and represent this stored data using multiple database objects such as in form of macros, forms, reports, etc. After a MS Access database is created there is need to improve the performance and…
In Microsoft Access, learn the trick to repeating sub-report headings at the top of each page. The problem with sub-reports and headings: Add a dummy group to the sub report using the expression =1: Set the “Repeat Section” property of the dummy…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
Suggested Courses

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question