+ Reply to Thread
Results 1 to 7 of 7

Label1 active/displaying for 2 seconds only and disappeared

  1. #1
    Forum Contributor
    Join Date
    11-17-2013
    Location
    Qatar
    MS-Off Ver
    Excel 2010
    Posts
    174

    Label1 active/displaying for 2 seconds only and disappeared

    Hi All,

    I tried many times with some reference from the excelforum but still stuck.
    I didn't put any codes on the reference file.
    The "Label1" (properties: visible = false) needs to displaying/active for two seconds only when the mouse is crossing on the "Label1", then disappeared if the mouse is leaving from "Label1".

    Thank you good people for any helps.

    Iqballhud
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    07-23-2018
    Location
    UK
    MS-Off Ver
    O365 32bit (Windows)
    Posts
    1,980

    Re: Label1 active/displaying for 2 seconds only and disappeared

    See if this helps:

    Add the red bits to your module

    Please Login or Register  to view this content.


    Add this to your userform
    Please Login or Register  to view this content.

  3. #3
    Forum Contributor
    Join Date
    11-17-2013
    Location
    Qatar
    MS-Off Ver
    Excel 2010
    Posts
    174

    Re: Label1 active/displaying for 2 seconds only and disappeared

    Marks, thank you for the codes.
    When I added another label, with added the codes, it's working only for Label1 shown, not for others.
    The codes modified as below,

    in Module
    Please Login or Register  to view this content.
    The code in UserForm
    Please Login or Register  to view this content.
    The next, I will use multiple Label to be shown for two seconds.
    Thank you in advance, Marks.
    Attached Files Attached Files

  4. #4
    Forum Expert
    Join Date
    07-23-2018
    Location
    UK
    MS-Off Ver
    O365 32bit (Windows)
    Posts
    1,980

    Re: Label1 active/displaying for 2 seconds only and disappeared

    Maybe you could reuse Label1

    Please Login or Register  to view this content.

  5. #5
    Forum Contributor
    Join Date
    11-17-2013
    Location
    Qatar
    MS-Off Ver
    Excel 2010
    Posts
    174

    Re: Label1 active/displaying for 2 seconds only and disappeared

    Hi Marks,

    Thank you so much, the codes is working fine and I will mark as SOLVED and STAR reputation will be added.

    Another thing, I don't understand about the function of "LabelxZorder(0)", because when i removed, the codes still working good.

    Iqballhud

  6. #6
    Forum Expert
    Join Date
    07-23-2018
    Location
    UK
    MS-Off Ver
    O365 32bit (Windows)
    Posts
    1,980

    Re: Label1 active/displaying for 2 seconds only and disappeared

    You're welcome and thanks for the feedback.

    The zOrder is how the controls are layered. It was just a precaution. By setting it to zero, it makes sure it's on top of the other controls.
    You can set this in the VB Editor at design time under the menu Format-->Order-->Bring to Front

  7. #7
    Forum Contributor
    Join Date
    11-17-2013
    Location
    Qatar
    MS-Off Ver
    Excel 2010
    Posts
    174

    Re: Label1 active/displaying for 2 seconds only and disappeared

    Thank you so much, Marks, for the explanation.
    wishing you all the best.
    Cheers,
    Iqballhud

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 5
    Last Post: 08-04-2022, 03:13 PM
  2. Excel 2007 : Displaying seconds as hour:min:sec
    By Anita Donnelly in forum Excel General
    Replies: 4
    Last Post: 06-21-2012, 09:30 AM
  3. Displaying Hours, Minutes & Seconds
    By KJW in forum Excel General
    Replies: 3
    Last Post: 05-18-2010, 06:01 PM
  4. Active Title Bar has disappeared
    By Starchaser in forum Excel General
    Replies: 0
    Last Post: 05-21-2008, 11:36 AM
  5. [SOLVED] Displaying seconds in hh:mm:ss format
    By PCLIVE in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 11-22-2005, 03:10 PM
  6. Displaying A MsgBox for X Seconds
    By Mark in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-15-2005, 11:05 AM
  7. Displaying Seconds as Minutes
    By matrixfire in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-30-2005, 06:23 AM

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1