HalfAce,
In a standard module, you can have something like this: Code:
Sub DismissFrameVisability()
UserForm1.Frame1.Visible = False
End Sub
Then, (for this example it's using a CommandButton on the userform to make Frame1 visible),
you could use something like this: Code:
Private Sub CommandButton1_Click()
Me.Frame1.Visible = True
Application.OnTime Now + TimeSerial(0, 0, 10), "DismissFrameVisability"
End Sub
It's not working at all. I don't know why! In VBA Help it's
Example
This example runs my_Procedure 15 seconds from now.
Application.OnTime Now + TimeValue("00:00:15"), "my_Procedure"
I've tried like this with the time format, but it's not working again.
I've tried to put the procedure:
In Userform, Declarations section:
Sub DismissFrameVisability()
UserForm1.Frame1.Visible = False
End Sub
Private Sub DismissFrameVisability()
UserForm1.Frame1.Visible = False
End Sub
Private Function DismissFrameVisability()
UserForm1.Frame1.Visible = False
End Sub
In a standart module:
Public Sub DismissFrameVisability()
UserForm1.Frame1.Visible = False
End Sub
Sub DismissFrameVisability()
UserForm1.Frame1.Visible = False
End Sub
Nothing happens...doesn't make visible = false at all..