需要循环的啊,改正一下
1、Thisworkbook
Private Sub Workbook_Open()
ShowMe
End Sub
2、模块
Sub Showme()
If ActiveSheet.Name <> Sheet1.Name Then
Sheet1.Activate
Else
Sheet2.Activate
End If
Application.OnTime Now() + TimeValue("00:05:00"), "ShowMe"
End Sub
1、Thisworkbook
Private Sub Workbook_Open()
Application.OnTime Now() + TimeValue("00:05:00"), "ShowMe"
End Sub
2、模块
Sub Showme()
If ActiveSheet.Name <> Sheet1.Name Then
Sheet1.Activate
Else
Sheet2.Activate
End If
End Sub