سلام دوستان
آیا در یوزرفرم امکانش هست کپشن لیبل رو چشمک زنش بکنیم؟
آیا در یوزرفرم امکانش هست کپشن لیبل رو چشمک زنش بکنیم؟
Sub startTimer() Application.OnTime Now + TimeValue("00:00:01"), "color_l" End Sub Sub color_l() With UserForm1.Label1 If .ForeColor = &H80000012 Then .ForeColor = &H80000004 Else .ForeColor = &H80000012 End If End With startTimer End Sub Sub endtimer() Application.OnTime Now + TimeValue("00:00:01"), "color_l", schedule:=False End Sub
Sub startTimer() Application.OnTime Now + TimeValue("00:00:01"), "color_l" End Sub Sub color_l() With UserForm1.Label1 If .ForeColor = &H80000012 Then .ForeColor = &H80000004 Else .ForeColor = &H80000012 End If End With startTimer End Sub Sub endtimer() Application.OnTime Now + TimeValue("00:00:01"), "color_l", schedule:=False End Sub
Sub startTimer() Application.OnTime Now + TimeValue("00:00:01"), "color_l" End Sub Sub color_l() With UserForm1.Label1 If .ForeColor = &H80000012 Then .ForeColor = &H80000005 ElseIf .ForeColor = &H80000005 Then .ForeColor = &H8000000D ElseIf .ForeColor = &H8000000D Then .ForeColor = &HFF& Else .ForeColor = &H80000012 End If End With startTimer End Sub Sub endtimer() Application.OnTime Now + TimeValue("00:00:01"), "color_l", schedule:=False End Sub
Sub startTimer() Application.OnTime Now + TimeValue("00:00:01"), "color_l" End Sub Sub color_l() With UserForm1.Label1 If .ForeColor = &H80000012 Then .ForeColor = &H80000004 Else .ForeColor = &H80000012 End If End With startTimer End Sub Sub endtimer() Application.OnTime Now + TimeValue("00:00:01"), "color_l", schedule:=False End Sub
کامنت