Consulting

Results 1 to 5 of 5

Thread: Form Picture help

  1. #1
    VBAX Expert
    Joined
    Apr 2007
    Location
    Orlando, FL
    Posts
    751
    Location

    Form Picture help

    I wanted to know if this is possible.

    Is it possible when someone clicks a button for it to make a picture visible for a certain amount of seconds then hide the picture?

  2. #2
    Moderator VBAX Master austenr's Avatar
    Joined
    Sep 2004
    Location
    Maine
    Posts
    2,033
    Location
    try something like this untested:

    replace the msgbox logic with your picture

    [vba]Sub exceltimer()
    Dim PauseTime, Start, Finish, TotalTime
    If (MsgBox("Press Yes to Get a Break Reminder", 4)) = vbYes Then
    PauseTime = 10
    Start = Timer
    Do While Timer < Start + PauseTime
    DoEvents
    ' your routine here

    Loop
    Finish = Timer
    TotalTime = Finish - Start
    MsgBox "Break lasted for " & TotalTime & " seconds"
    Else
    End
    End If
    End Sub[/vba]
    Peace of mind is found in some of the strangest places.

  3. #3
    VBAX Expert
    Joined
    Apr 2007
    Location
    Orlando, FL
    Posts
    751
    Location
    I think that will work, I will do some more testing.

  4. #4
    VBAX Expert
    Joined
    Apr 2007
    Location
    Orlando, FL
    Posts
    751
    Location
    Pause time works by seconds? is
    [VBA]Pausetime = 10[/VBA]

    equal 10 seconds?

  5. #5
    Moderator VBAX Master austenr's Avatar
    Joined
    Sep 2004
    Location
    Maine
    Posts
    2,033
    Location
    yes
    Peace of mind is found in some of the strangest places.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •