Private Sub CommandButton1_Click() Static clickTimes As Integer ActiveSheet.PrintOut '工作表打印 clickTimes = clickTimes + 1 '计数End Sub
你指定的是哪个工作表,计数写在哪里?