Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 04-19-2013, 10:13 AM
JohnWilson JohnWilson is offline Need help with custom UI image gallery ribbon Windows 7 64bit Need help with custom UI image gallery ribbon Office 2010 32bit
Programmer
 
Join Date: Nov 2008
Location: UK
Posts: 1,914
JohnWilson has a spectacular aura aboutJohnWilson has a spectacular aura about
Default

In you XML the Schemas should really be
<customUI xmlns="http://schemas.microsoft.com/office/2006/01/customui">

Why it doesn't work:

When you click a gallery the vba is doing exactly what you say .... everything!

You need to read the index of the item clicked and use it to select what happens

'Callback for Gallery1 onAction
Sub ClickImage(control As IRibbonControl, id As String, index As Integer)
Select Case index
Case Is = 1
'do this
Case Is = 2
'do this
'etc
End Select
End Sub

I would use SlideRange(1) BTW and also add some error checking to make sure a presentation is open and that a slide is selected.
__________________
Microsoft PowerPoint MVP 2007-2023
Free Advanced PowerPoint Tips and Tutorials
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Excel 2007 custom ribbon not showing in Excel 2010 Paulzak Excel 2 02-17-2012 06:35 PM
Custom Tab on the ribbon missing TechEd Word 2 09-14-2011 05:08 PM
Excel 2010 Ribbon look like 2007's Ribbon esotop Excel 0 03-22-2011 07:05 PM
Need help with custom UI image gallery ribbon Excel 2010 Custom Ribbon judicial85 Excel 3 12-05-2010 07:22 PM
Need help with custom UI image gallery ribbon custom bullet points - stop image resizing dlee388 PowerPoint 1 12-29-2009 04:47 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 02:09 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2026 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft