Private Sub Workbook_Open()With Sheets(1)If WorksheetFunction.CountA(.Range("a:a")) = 0 Then Call macroThisWorkbook.SaveIf Hour(Time) >= 1 And Hour(Time) <= 15 Then ThisWorkbook.CloseEnd WithEnd Sub
具体 根据什么条件? 比如 A1 =1 则执行程序?