Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

PictureFormat.LinkedFileStatus Property

Office 2007
Returns a PbLinkedFileStatus constant that indicates the status of the file linked to the specified picture. Read-only.

Syntax

expression.LinkedFileStatus

expression   A variable that represents a PictureFormat object.

Return Value
PbLinkedFileStatus

Remarks

This property only applies to linked picture files. It returns "Permission Denied" for shapes representing embedded or pasted pictures.

Use either of the following properties to determine whether a shape represents a linked picture:

The LinkedFileStatus property value can be one of the PbLinkedFileStatus constants declared in the Microsoft Office Publisher type library.

Example

The following example generates a list of the linked pictures in the active publication for which the linked files cannot be found.

Visual Basic for Applications
Dim pgLoop As Page
Dim shpLoop As Shape

For Each pgLoop In ActiveDocument.Pages
    For Each shpLoop In pgLoop.Shapes
        If shpLoop.Type = pbLinkedPicture Then
        
            With shpLoop.PictureFormat
                If .LinkedFileStatus = pbLinkedFileMissing Then
                Debug.Print .Filename
                End If
            End With
            
        End If
    Next shpLoop
Next pgLoop



Community Additions

ADD
Show:
© 2015 Microsoft