Avatar of AL_XResearch
AL_XResearch
Flag for United Kingdom of Great Britain and Northern Ireland asked on

Excel Ribbon - Backstage - adding a seperator

I have a custom tab in the backstage section of my ribbon xml. I would like to know if there is any way to put a separator (like the node used elsewhere in RibbonX) in a <TopItems> node. I have tried it and cant get it to validate.

I am using the Custom UI editor and Excel 2010.

Basically I want to create vertical space between items but yet keep them related to the group their are in.

The ssnippet below shows where I would like to put it.
<tab ....>
     <firstColumn>
                  <group ....>
                         <primaryItem>
                                      <button .... />
                         </primaryItem>
                         <topItems>
                                   <layoutContainer ....>
                                                    <dropDown ..../>
                                                    <SEPERATOR HERE>
                                                    <button .... />
                                   </layoutContainer>
                         </topItems>
                  </group>
     </firstColumn>
</tab>

Open in new window

Microsoft ExcelMicrosoft Applications

Avatar of undefined
Last Comment
John Wilson

8/22/2022 - Mon
yuppydu

use <separator id="whateveryouwant"/>
AL_XResearch

ASKER
That was the first thing I tried. It was rejected as invalid inside the 'backstage' section. That is why I was asking. It would be great if backstage used the same rules and as the rest of the ribbon but sadly not.
yuppydu

can you attach the file, please?
Experts Exchange has (a) saved my job multiple times, (b) saved me hours, days, and even weeks of work, and often (c) makes me look like a superhero! This place is MAGIC!
Walt Forbes
yuppydu

I don't think it can be done in backstage.... investigating
AL_XResearch

ASKER
yuppydu: I am afraid I can't attach a file as a) it is my client's property b) it is too large and complicated. The extract in my initial posting shows what I am trying to do and clarifies my question.

Thanks for investigating - I am sure there must be a way as several MS ribbon examples show separators (unless they have 'faked it will a LabelControl). Unfortunately the XML extracts in those articles do not show what could be responsible.
yuppydu

If I find anything I'll let you know.
Have a good day
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
AL_XResearch

ASKER
Anyone else have any thoughts ?
John Wilson

You cannot add a seperator to a layoutContainer

Permitted Items are:


button
checkBox
comboBox
dropDown
editBox
groupBox
hyperlink
imageControl
labelControl
laypouContainer
radioGroup

Adding a couple of (empty) groupBoxes may make some space
AL_XResearch

ASKER
JSRWilson, thanks for the response. Where did you get that information ? I have been looking for ages and have not found anywhere that says that a Separator is not allowed in backstage (whether in or out of a layoutContainer)
This is the best money I have ever spent. I cannot not tell you how many times these folks have saved my bacon. I learn so much from the contributors.
rwheeler23
ASKER CERTIFIED SOLUTION
John Wilson

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Richard Daneke

Would this link in MSDN be of any help:
http://msdn.microsoft.com/en-us/library/ff597537(v=office.14).aspx
It would appear that an Edit Box with a space (" ") may provide some spacing.  
It also details the VB and XML issues and discusses the application of styles.
John Wilson

Not sure how an editBox would work. It wouldn't really look like a space and the user would be able to type into it unless you set enable to false which might be confusing!