When a custom XML UI file is used to add multiple custom ribbon tabs to Access, the selected ribbon tab changes to the first custom tab whenever the form closes.
We load custom feed programmatically from VBA. I created accdb that reproduces the problem . The folder also contains an XML file containing the definition of the tape. It must be in the same directory as the .accdb file.
The problem can be easily demonstrated:
- open the RibbonTest.accdb database,
- switch to Tab2 and open Form2 using the button on the ribbon and
- close form 2.
Note that Tab1 is now active.
Of course, in this small db example, this problem seems very minor. However, we have a very large project with many custom tabs, each of which contains many groups and buttons. Our users are very disappointed that they continue to lose space on the tape every time they close the form.
We investigated a workaround in which we programmatically save the selected tab and restore it when we consider what we need. However, do it reliably. (There is no Office API to automate a feed like this, but this article helped .)
Has anyone else encountered this problem? Did you find a way to prevent tabs from automatically changing?
: , , Office 2010 SP1. (, : , .) RTM- . 1 : "Access " " , ". , Form.RibbonName( ), .