Private Declare Sub keybd_event Lib "user32" ( _
ByVal bVk As Byte, ByVal bScan As Byte, _
ByVal dwFlags As Long, ByVal dwExtraInfo As Long)
Private Sub CommandButton1_Click()
keybd_event vbKeySnapshot, 1, 0&, 0&
DoEvents
Set ShApercu = Sheets.Add
ShApercu.Paste
With ShApercu.PageSetup
.CenterHorizontally = True
.CenterVertically = True
End With
Application.OnTime Now + TimeValue("00:00:00"), "ApercuImpression"
Unload Me
End Sub