![]() |
|
#2
|
|||
|
|||
|
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. |
| Thread Tools | |
| Display Modes | |
|
|
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 |
Excel 2010 Custom Ribbon
|
judicial85 | Excel | 3 | 12-05-2010 07:22 PM |
custom bullet points - stop image resizing
|
dlee388 | PowerPoint | 1 | 12-29-2009 04:47 PM |