Solved

PowerPoint CustomUI built in button SlideNewGallery showing incorrect layouts

Posted on 2014-02-14
2
731 Views
Last Modified: 2014-02-15
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
Comment
Question by:Bryce Bassett
[X]
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
2 Comments
 
LVL 23

Accepted Solution

by:
JSRWilson earned 500 total points
ID: 39861614
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
 

Author Closing Comment

by:Bryce Bassett
ID: 39861751
Looks like that did it.  Thanks for your help!
0

Featured Post

Learn how to optimize MySQL for your business need

With the increasing importance of apps & networks in both business & personal interconnections, perfor. has become one of the key metrics of successful communication. This ebook is a hands-on business-case-driven guide to understanding MySQL query parameter tuning & database perf

Question has a verified solution.

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

This article describes how to import an Outlook PST file to Office 365 using a third party product to avoid Microsoft's Azure command line tool, saving you time.
This article describes how to use a set of graphical playing cards to create a Draw Poker game in Excel or VB6.
The view will learn how to download and install SIMTOOLS and FORMLIST into Excel, how to use SIMTOOLS to generate a Monte Carlo simulation of 30 sales calls, and how to calculate the conditional probability based on the results of the Monte Carlo …
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…
Suggested Courses

630 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