nomadsmartphone.blogg.se

Voice macro buttons not working
Voice macro buttons not working




voice macro buttons not working

Obviously, you could get a lot fancier with this ThisIsMyPresentation could take more parameters (different tag names or values for example, to make it more generally useful). Not gonna."įunction ThisIsMyPresentation(oPres As Presentation) As Booleanįor Each oSh In oPres.Designs(1).SlideMaster.Shapes ' don't do anything, it's the wrong presentation If ThisIsMyPresentation(ActivePresentation) Then (Adds a tag named TagName whose value is TagValue to the shape) Added a shape, then while the shape was selected, ran this in the VBA immediate window:Ī(1).Tags.Add "TagName", "TagValue" I went into master view, selected the topmost thumbnail (the Master) as opposed to any of the layout thumbnails indented below it. What am I missing? The same error message happens in Office 20 with all custom buttons. Although this works, it does provide the users with another step and is not very tidy. Created a button which displays the run Macro dialog box.

#VOICE MACRO BUTTONS NOT WORKING CODE#

I have the callback and code split as standard - something I started doing in Word when multiple templates referred to the same code saved in a template loaded at start-up. I have tried placing the frmChangeColour.Show code into the call back without success.(I don't really want to use an addin as this functionality will not be Some posts suggest saving the presentation as a presentation addin - when I do this the userform is displayed but when you click the OK button the error message above is displayed.I have created a blank presentation and created base code that displays a message box - I get the same issue.Using (ByVal control as IRibbonControl) but the same error message is displayed.Running the form directly using RunMacro - the form is displayed and the changes to the presentation work as expected.Sub rbChangePresColour(control As IRibbonControl) The call back rbChangePresColour displays the userform: The macro settings are set to run all macros, the folder containing the template is a trusted location. "The macro cannot be found or has been disabled because of your security settings" The issue: When a presentation is created from the template although the tab and button is displayed, when clicked the following message is displayed: The end result: A custom ribbon tab with a button that when clicked displays a userform from which a theme colour and logo is selected. I have been working with Custom UI using Word without any issue, however, not having the same luck with a PowerPoint template - any help and suggestions will be very much appreciated.






Voice macro buttons not working