Nếu em áp dụng code trên cho Form như sau:Private Sub Worksheet_Activate()
Dim x$, i@
x = "Cong hoa xa hoi Chu nghia Viet Nam __ "
Do
i = i + 1
If i = 10000 Then
x = Mid(x, 2) & Left(x, 1): i = 0
Application.Caption = x
End If
DoEvents
Loop Until Len(x) = 0
End Sub
Nếu em áp dụng code trên cho Form như sau:
Private Sub UserForm_Activate()
Dim x$, i@
x = "Cong hoa xa hoi Chu nghia Viet Nam __ "
Do
i = i + 1
If i = 10000 Then
x = Mid(x, 2) & Left(x, 1): i = 0
UserForm1.Caption = x
End If
DoEvents
Loop Until Len(x) = 0
End Sub
thì Caption trên form vẫn chạy nhưng khi tắt Form đó đi thì không thể nhập dữ liệu trên nền Excel.. Xin tác giả hướng dẫn thêm???Chân thành cảm ơn!!!
Dim Terminated As Boolean
Private Sub UserForm_Terminate()
Terminated = True
End Sub