+ Reply to Thread
Results 1 to 6 of 6

TextBox (NotUserForm) is not updating automatically!

  1. #1
    Registered User
    Join Date
    10-21-2013
    Location
    PL
    MS-Off Ver
    Excel 2010
    Posts
    6

    TextBox (NotUserForm) is not updating automatically!

    Hi Guys,

    I've got the text box drawn directly on my spredsheet (so not UserForm) where i want to display files created (kind of progress indicator). The problem is that the displayed message updates only at the end - when macro is not running anymore. So I can only get the message"Done..." which ist the last one of course : ).

    Ive tried to use Repaint method but its not working!
    Please Login or Register  to view this content.
    Any suggestions?

    The same issue was posted Here
    Last edited by hazy13; 10-21-2013 at 03:39 AM.

  2. #2
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,434

    Re: TextBox (NotUserForm) is not updating automatically!

    Try this

    Please Login or Register  to view this content.
    Cheers
    Andy
    www.andypope.info

  3. #3
    Registered User
    Join Date
    10-21-2013
    Location
    PL
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: TextBox (NotUserForm) is not updating automatically!

    Hallo Andy,

    first of all thanks for you quick replay....

    i have tried your method and if i use simple code as belowe than it is working perfectly
    Please Login or Register  to view this content.
    but in my macro it is not helping. My Macro is pretty "Big" takes couple of minutes to created all files we need. and i never used the DoEvents command in my macro (actually, not really understand what does it do).

    Also in my Macro I'm getting the information from different location. My Macro runs trhough couple of sheets to get the current information.

    Any suggestion where can i search for solution?

  4. #4
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,434

    Re: TextBox (NotUserForm) is not updating automatically!

    From the help.

    DoEvents passes control to the operating system. Control is returned after the operating system has finished processing the events in its queue and all keys in the SendKeys queue have been sent.
    Without seeing your macro it's impossible to say.

  5. #5
    Registered User
    Join Date
    10-21-2013
    Location
    PL
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: TextBox (NotUserForm) is not updating automatically!

    Hallo Andy

    I have just for test remove most of the program (90%) and left only one loop to see if it will work but unfortunately it is sitll not working.

    Is it possible that i mail it you and you have a brief look :/// - i guess it will be still bit too big to post it on forum

  6. #6
    Registered User
    Join Date
    10-21-2013
    Location
    PL
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: TextBox (NotUserForm) is not updating automatically!

    Hi All,

    First of all Thank you Andy for your help!

    Below you will find my modified code:
    Please Login or Register  to view this content.
    So remmber to use DoEvents commad - if needed on more locations!
    Make sure the Sheet with TextBox on it is active!
    And last bad not least remmber to turn on back screen updating if it was turned off : )

+ 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. Userform Textbox updating a another userform textbox (im stuck!!)
    By wapwap in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 03-31-2011, 02:56 PM
  2. Updating Textbox in UserForm
    By Rick_Stanich in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-03-2009, 01:55 PM
  3. TextBox Updating
    By grahammal in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-15-2006, 05:52 AM
  4. Trendline Textbox Not Updating
    By Phil Hageman in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 07-05-2005, 12:05 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