Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 738
  • Last Modified:

PowerPoint CustomUI built in button SlideNewGallery showing incorrect layouts

Hi

I've built dozens of PowerPoint toolbars (addins), and have never run into this issue.  

I have a custom ribbon menu tab where I've put various buttons to run my VBA macros, along with one built-in button for New Slide, the same as on the Home tab.
<gallery idMso="SlideNewGallery" size="large" screentip="New Slide" supertip="Add a new slide after the currently selected slide, with a layout selected from those currently available in the presentation."/>

Open in new window


One of my custom buttons starts a new presentation based on the corporate template.  There are a couple dozen custom layouts in our template.  At that point of course the New Slide button should present a drop-down gallery of layouts in the template.  It does not.  Rather, it shows only the layouts in the default blank deck you see when you first launch PowerPoint.  The new presentation is the only file open, but the gallery is not updated.
new slideIf I click some other commands then come back to this button, it will work as expected.  
goodBut why doesn't it work the first time?  I suppose I could refresh the ribbon after opening a new presentation, but I shouldn't have to, and I've never had to before.

Can anybody think what might be going on?
0
Bryce Bassett
Asked:
Bryce Bassett
1 Solution
 
JSRWilsonCommented:
Did you do this with XML?

If so it should be:

 <control idMso="SlideNewGallery"  size="large"/>

My bet is you used <gallery ??

UPDATE: sorry I just noticed you DID use gallery! Use <control
0
 
Bryce BassettFreelance VBA programmerAuthor Commented:
Looks like that did it.  Thanks for your help!
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now