斑竹 请问 通过移动鼠标方法来实现时 ,运行时在该行: Me.Show 0 提示错误:
Private Sub UserForm_MouseMove(ByVal Button As Integer, ByVal Shift As Integer, ByVal X As Single, ByVal Y As Single) Debug.Print X & "," & Y If (X < 5 Or Y < 5 Or X > Me.Width - 15 Or Y > Me.Height - 25) Then If i = True Then i = False Me.StartUpPosition = 3 Me.Hide Me.Show 0
End If Else If i = False Then i = True Me.StartUpPosition = 3 Me.Hide Me.Show 1 End If End If End Sub