first_page the funky knowledge base
personal notes from way, _way_ back and maybe today

Word 2000: TogglePicturePlaceHolder()

Public Sub TogglePicturePlaceHolder() Dim intIndex As Integer

If Application.Documents.Count = 0 Then Exit Sub

If Application.ActiveDocument.InlineShapes.Count = 0 Then Exit Sub

With ActiveWindow.View
    .ShowPicturePlaceHolders = Not (.ShowPicturePlaceHolders)
End With

Call TogglePictPlaceholderButton

End Sub

Private Sub TogglePictPlaceholderButton() Dim intState As Integer

With Application
    If .ActiveWindow.View.ShowPicturePlaceHolders Then
        intState = msoButtonDown
    Else
        intState = msoButtonUp
    End If
    
    On Error Resume Next
    .CommandBars.FindControl(Tag:="cmdPicPlaceholder").State = intState
End With

End Sub

mod date: 2001-10-29T02:10:38.000Z