+ Reply to Thread
Results 1 to 4 of 4

To add a ProgressBar in Excel 2003 Macro

  1. #1
    Forum Contributor
    Join Date
    11-29-2012
    Location
    Coimbatore, India
    MS-Off Ver
    Excel 2010
    Posts
    101

    To add a ProgressBar in Excel 2003 Macro

    Hi Everyone,

    I'm building a Excel Macro. This Macro updates a word document and save them in different name for each iteration. This takes a long time. so to inform the user that macro is functioning in backgroud i just want to let them know through a Progress Bar. Surprisingly Progressbar addin not working in Excel 2003. So i'm using Userform & Label combination. I'm using two Labels one with maximum width set and another one set with minimum width. so for each iteration the later Label's width will keep on increasing.

    I'm facing a problem here. My logic is working fine and macro does wat it is supposed to do. But the userform Hanging during the execution. Its turining white while the code is executing. I worked in debug mode and label widths are getting updated correctly. Can u please help me what i'm missing here. attaching the screenshots and code. Thanks in advance.

    Please Login or Register  to view this content.
    Original Userform.JPGUserform Hanging.JPG
    Last edited by sugaprasad; 12-11-2012 at 10:31 AM.

  2. #2
    Forum Contributor
    Join Date
    11-29-2012
    Location
    Coimbatore, India
    MS-Off Ver
    Excel 2010
    Posts
    101

    Re: To add a ProgressBar in Excel 2003 Macro

    Just want to know if anyone has any idea on this issue

  3. #3
    Forum Expert
    Join Date
    06-25-2009
    Location
    Sofia, Bulgaria, EU
    MS-Off Ver
    Excel 2003-2013
    Posts
    1,290

    Re: To add a ProgressBar in Excel 2003 Macro

    Hi,
    Try to force repaint the user form, using .Repaint method of the UserForm. Also I would suggest to add DoEvents statement if the loop is too long. That should prevent from hang up.

    Buran
    If you are pleased with a member's answer then use the Star icon to rate it.

  4. #4
    Forum Contributor
    Join Date
    11-29-2012
    Location
    Coimbatore, India
    MS-Off Ver
    Excel 2010
    Posts
    101

    Re: To add a ProgressBar in Excel 2003 Macro

    Thanks Buran. .Repaint is working perfectly

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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