Using automation to change a linked object's update setting

  • Thread starter Thread starter Mike Frederick
  • Start date Start date
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?
 
Back
Top