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
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