B
Bob U
I am modifying a template previously developed (by someone
else)that inserts an enhanced metafile from the clipboard
and converts it into an inline image. When I use this in
Office XP I get a runtime error 424, object required in
the line marked with ">>>" below. The template worked in
Office 97 and 2000.
If replace = False Then
mySel.InsertParagraphAfter
End If
On Error GoTo ErrorHandler:
mySel.PasteSpecial Link:=False,
DataType:=wdPasteEnhancedMetafile
On Error GoTo 0
'Can't make a Metafile an InlineShape when inserting so do
it below.
With mySel.ShapeRange.Width = InchesToPoints(6.5)
.ConvertToInlineShape
End With
Commenting out affected line moves the error to the next
line.
Any insight, advice, or work around will be greatly
appreciated.
TIA
Bob
P.S. ErrorHandler traps non-enhancedmetafiles in the
clipboard...
else)that inserts an enhanced metafile from the clipboard
and converts it into an inline image. When I use this in
Office XP I get a runtime error 424, object required in
the line marked with ">>>" below. The template worked in
Office 97 and 2000.
If replace = False Then
mySel.InsertParagraphAfter
End If
On Error GoTo ErrorHandler:
mySel.PasteSpecial Link:=False,
DataType:=wdPasteEnhancedMetafile
On Error GoTo 0
'Can't make a Metafile an InlineShape when inserting so do
it below.
With mySel.ShapeRange.Width = InchesToPoints(6.5)
.ConvertToInlineShape
End With
Commenting out affected line moves the error to the next
line.
Any insight, advice, or work around will be greatly
appreciated.
TIA
Bob
P.S. ErrorHandler traps non-enhancedmetafiles in the
clipboard...