prova cosi
Sub Stampa()
Cells(1, 1).Select
If Cells(1, 1) <> "ciao" Then
ActiveWindow.SelectedSheets.PrintPreview
'ActiveWindow.SelectedSheets.PrintOut Copies:=1, Collate:=True
Selection.AutoFilter ' Field:=1
Else
MsgBox ("NON PUOI STAMPARE")
Exit Sub
End If
End Sub
Excel 2013