I am hoping someone can give me the VBA code in access 2019 to show the Custom Quick Access Toolbar and hide RIBBON (Hide File, home, create, .... )
In my research I have seen code to hide the main menu/ribbon, and which also hides the custom QAT:
DoCmd.RunCommand acCmdWindowHide
DoCmd.ShowToolbar "Ribbon", acToolbarNo
However, I want to keep the QAT and only hide the main menu/ribbon.
Related
Using an .xlam project with a fully working custom ribbon, I have found that the new tab will sometimes show nothing when clicked on. It is intermittent. The global RibbonUI object is available and running an .invalidate will then show the ribbon. However, the .invlalidate attempts prior to the tab being viewed do not seem to change this behavior. I have to view the tab and then run the .invalidate manually (with a macro button) to see the ribbon appear.
I am scratching my head trying to find a slick way of making this new custom tab populate 100% of the time.
For the benefit of those that come across this issue, I have found the root cause and a solution. This is Excel O365 specific.
If you have a custom ribbon tab set up and working, try this. Open Excel, create a blank workbook, then double-click on a cell to put it in "edit mode". Click on your custom ribbon tab. Blank, right?
This "cell in edit mode" is what was causing Excel O365 to fail to show my custom ribbon. Excel O365 starts up on the "File" screen. Prior versions always opened to a blank sheet. If you click on "Blank workbook", the ribbon displays fine. If you DOUBLE-CLICK on "Blank workbook", the first click opens the workbook and the second click puts a cell into ""edit mode". In this state, clicking on your custom ribbon tab shows nothing.
The work-around
Private Sub WorkbookActivate(ByVal Wb As Workbook)
Application.SendKeys "{ESC}"
...
You may see a cell go into edit mode for one blink but it then exits edit mode. Click on your custom ribbon tab. It will now show the ribbon controls as designed.
I am coding a custom add-in for PowerPoint and customizing the ribbon. I would like to hide the "Voice" group (big dictate button) from the Home tab, but I can't find the idMso for the element.
Anyone has experience in that?
I am developing a application in VB.NET. The user interface contains a ribbon tab with a few ribbon buttons. On each ribbon button click event, the application will execute a process.
When a process being executed, I want to lock the click event of other ribbon buttons. It means, the user should not be able to pick the other ribbon buttons.
I do not find the lock property for ribbon buttons. To avoid the button getting grey, I do not want to disable the button. please provide your suggestion.
I've been writing a custom ribbon with VSTO (using VB.net and XML) and I have written a number of buttons who's labels & pressed states depend on the calculation mode that Excel is in.
The getPressed and getLabels callback functions check for the excel calculation mode but these are only called when the ribbon is first loaded or the buttons are clicked. If someone were to go into the "formulas" tab, change the calculation mode and then go back to the custom ribbon tab, the pressed states and labels on the buttons in this custom tab would now be incorrect.
Is there a way to trigger these callback functions to be called (eg a way to call the ribbon.invalidate() function) when someone clicks on the custom ribbon tab in Excel?
I wanted my Access program to look like standalone and I got rid of all menus from customize. I was still seeing ribbon and office icon, where I would revert that back. Then I found this awesome answer to hide ribbon (including all menu) Disabling the Ribbon Bar Except for Reports (Print Preview) In MS-Access
So, I used
DoCmd.ShowToolbar "Ribbon", acToolbarNo
Then comes new problem
Now I cannot modify anything, design and more codes. How do I revert back?
Thanks
Edit: I know, DoCmd.ShowToolbar "Ribbon", acToolbarYes may be way to go, but I cannot access VBA too.
Ananta
Hold the shift key while you open the database, then press alt+F11 and see if that gets the code window.