PowerPoint: Cannot Set SourceFullName in Office 2007?

J

Joel

I have code that works perfectly well in Office 2003 but no longer works in
Office 2007. The code attempts to set the source file name of a movie clip
object. In other versions of Office I simply set the SourceFullName of the
LinkTarget object but in Office 2007 an exception is generated.

Run-time error '-2147467259 (80004005)':
LinkFormat.SourceFullName : Failed

The target file does exist and I have tried setting the property to the full
path and a relative path.

Here is the test code I am using...

For Each sld In ActivePresentation.Slides
For Each sh In sld.Shapes
If sh.Type = msoMedia Then
MsgBox sh.LinkFormat.SourceFullName <-- displays correct path
sh.LinkFormat.SourceFullName = "C:\Temp\File.MPG" <-- throws an
exception
End If
Next
Next
 
C

Cindy M.

Hi =?Utf-8?B?Sm9lbA==?=,
I have code that works perfectly well in Office 2003 but no longer works in
Office 2007. The code attempts to set the source file name of a movie clip
object. In other versions of Office I simply set the SourceFullName of the
LinkTarget object but in Office 2007 an exception is generated.

Run-time error '-2147467259 (80004005)':
LinkFormat.SourceFullName : Failed
Since you haven't gotten a response here, try asking in the powerpoint
newsgroup. The specialists there have the best idea what's changed and how to
work around any problems.

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 17 2005)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or
reply in the newsgroup and not by e-mail :)
 

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