Using automation to change a linked object's update setting

M

Mike Frederick

All,

I am trying to use automation to change a linked object's update setting
from "automatic" to "manual" via the following JScript:

// The values ppUpdateOptionAutomatic and ppUpdateOptionManual
// were set to 2 and 1 respectively earlier on.
// The variable oShape is a shape object from a slide...

var oLinkFormat = oShape.LinkFormat;
if (oLinkFormat != null)
{
var bUpdateAuto = false;
if (oLinkFormat.AutoUpdate == ppUpdateOptionAutomatic)
{
bUpdateAuto = true;
oShape.LinkFormat.AutoUpdate = ppUpdateOptionManual;
}
}

Everything works fine until I try to execute the line setting the update
mode to manual. When I step through this, the line calls out and never
returns. PowerPoint is not using CPU during this time. This is pretty
close to an example MS gives on their website (in fact, the line in question
IS the same except for variable naming). Any ideas what is going on?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top