之前您所寫
Private Sub Query_AfterRefresh(ByVal Success As Boolean)
Dim Msg As Boolean, R%, C%
If Not Success Then
UserForm1.Label1.Caption = "更 新 失 敗 !!"
GoTo L
End If
For R = 2 To 3
For C = 2 To AR.Columns.Count
If Rng(R, C) <> AR(R, C) Then
Msg = True
GoTo L
End If
Next
Next
L:
Rng = ""
UserForm1.Label1.Caption = "更 新 成 功 !!"
If Not Msg Then UserForm1.Label1.Caption = "更 新 失 敗 !!"
UserForm1.Show 0
'Test
End Sub作者: GBKEE 時間: 2011-12-12 16:59