From: Stefania Cristina on
Hi,

I have found the following piece of code that was posted last year in the mathworks central website:

g = actxserver('PowerPoint.Application');
g.Visible = 1;
Presentations = g.Presentations;
Presentation = invoke(Presentations,'Open','C:\...\Presentation.ppt')
Application = Presentation.Application;
invoke(Application,'Run','unbold', []);

(Link: http://www.mathworks.com/matlabcentral/newsreader/view_thread/243292)


When I run this code however, I am getting the following error which is being generated by the last line of code:

??? Invoke Error, Dispatch Exception:
Source: Microsoft Office PowerPoint 2007
Description: Application.Run : Invalid request. Sub or function not
defined.
Help File:
Help Context ID: 0


I am not really sure what this error means and how can I correct it. Additionally, I am not understanding the use of the string 'unbold' in this last line of code.

Thanks,
Stefania.
From: Eric on
The line of code you cite is trying to run a macro called "unbold". You do not have such a macro defined.