+ Reply to Thread
Results 1 to 4 of 4

Pop-up text boxes based on cell values then disappeared after preset time

  1. #1
    Forum Contributor
    Join Date
    10-03-2012
    Location
    USA
    MS-Off Ver
    2010
    Posts
    496

    Pop-up text boxes based on cell values then disappeared after preset time

    Hi,
    I am looking for solution on this Pop-up text boxes based on cell values then disappeared after preset time.


    Thanks
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    07-17-2013
    Location
    Richmond, VA USA
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Pop-up text boxes based on cell values then disappeared after preset time

    I don't know what events you have that will trigger anything, but use whatever trigger you have to run this:

    Private Sub ShowTB()
    Dim ws As Worksheet
    Set ws = Sheets("Sheet1")
    Start = Timer
    PauseTime = 60
    If ws.[B3].Value = 1 Then
    Do While Timer < Start + PauseTime
    ws.Shapes("TextBox 1").Visible = msoTrue
    DoEvents ' Yield to other processes.
    Loop
    ws.Shapes("TextBox 1").Visible = msoFalse
    End If

    End Sub

  3. #3
    Registered User
    Join Date
    11-14-2010
    Location
    Macau
    MS-Off Ver
    Excel 2003
    Posts
    66

    Re: Pop-up text boxes based on cell values then disappeared after preset time

    For me you place the below macro to sheet1 module :
    Please Login or Register  to view this content.
    now wait time is 5 seconds, u can change as u want.

  4. #4
    Forum Contributor
    Join Date
    10-03-2012
    Location
    USA
    MS-Off Ver
    2010
    Posts
    496

    Re: Pop-up text boxes based on cell values then disappeared after preset time

    Hello,
    I try boths, it seems I could not get it working.
    1. First I copy to code to sheet1.
    2. I remove "1" from cell B2.
    3. Textbox 1 is still showed unless I click B1. Can textbox1 be hidden without clicking a cell?
    4. Once textbox1 is hidden, I type in a "1" in B1. Textbox1 does not show up.

    The reason I am doing it is start a blank cell B with textbox1 hidden. If I enter a 1, then the textbox
    will pop up to give message to read for specified time, then automaticly hiding the textbox1 without
    clicking any key or cell to activate the marco. The textbox1 should be hide and unhide, when B1 is blank
    or have "1" or speficifed value respectively.

    Any thought?

    Thanks

+ 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. [SOLVED] Inputting text in one cell results in a preset number in another
    By chrisswann in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-24-2013, 05:20 AM
  2. [SOLVED] Populate cell values into 6 named text boxes in a userform then edit if required
    By How How in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 03-05-2013, 05:51 AM
  3. Replies: 17
    Last Post: 10-14-2012, 11:15 AM
  4. Writing cell values from dynamic text boxes
    By BillWilts in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-20-2010, 02:30 PM
  5. Help with dropdown boxes and preset selections
    By Keving in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-07-2006, 01:15 PM

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