Object Model Reference : Classes : B : Bitmap : Properties : Bitmap.LinkFileName |
Property LinkFileName As String
Member of Bitmap
The LinkFileName property returns the filename of an externally linked bitmap.
The LinkFileName property returns a read-only value.
The following VBA example displays the filenames of all externally linked bitmaps.
Sub Test() |
Dim s As Shape |
Dim str As String |
For Each s In ActivePage.Shapes |
If s.Type = cdrBitmapShape Then |
If s.Bitmap.ExternallyLinked Then str = str & s.Bitmap.LinkFileName & vbCrLf |
End If |
Next s |
MsgBox "The external file names are:" & vbCrLf & str |
End Sub |
Copyright 2013 Corel Corporation. All rights reserved.