Private Sub CommandButton1_Click()
With CommandButton1
.ForeColor = &HFFFFFF
ActiveDocument.Shapes(ActiveDocument.Shapes.Count).Visible = True
Dim sp As Shape
For Each sp In ActiveDocument.Shapes("Canvas 5").CanvasItems
obp = MsgBox(sp.Name & "是否為列印物件", vbYesNo)
If obp = 7 Then sp.Visible = msoFalse Else sp.Visible = msoCTrue
Next
ActiveDocument.PrintOut
.ForeColor = &H0
End With
End Sub