+ Reply to Thread
Results 1 to 6 of 6

How to show a Progress bar while macro is running in background?

  1. #1
    Registered User
    Join Date
    09-11-2012
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    11

    How to show a Progress bar while macro is running in background?

    Hi
    I am working with a macro that opens 25 files to calculate an update the value in one standard sheet.
    I have written code for steps I followed are as follow:
    1)''' Select the Folder having required files.......
    .....Application.DisplayAlerts = False
    2)''' Creating List of All Files in Selected Folder.......
    3)''' Renaming All Files in Selected Folder.......
    4)''' Opening All Files in Selected Folder.......
    5)''' Delete Previous Data in Standard Sheet.......
    6)''' Update Data In the Standard Sheet Using the Open Excel Files.......
    Now my requirement is to show a progress bar (Filling from 0% to 100%) on the main screen while all the steps runs in background.

    Pradeep Jassal

  2. #2
    Valued Forum Contributor Sean Thomas's Avatar
    Join Date
    03-25-2012
    Location
    HerneBay, Kent, UK
    MS-Off Ver
    Excel 2007,2016
    Posts
    971

    Re: How to show a Progress bar while macro is running in background?

    Hi, this might help.

    http://spreadsheetpage.com/index.php...ess_indicator/
    regards
    Sean

  3. #3
    Registered User
    Join Date
    09-11-2012
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    11

    Re: How to show a Progress bar while macro is running in background?

    I have already tried this but was not able to implement the provided code. Pls suggest some alternate way.

  4. #4
    Valued Forum Contributor Sean Thomas's Avatar
    Join Date
    03-25-2012
    Location
    HerneBay, Kent, UK
    MS-Off Ver
    Excel 2007,2016
    Posts
    971

    Re: How to show a Progress bar while macro is running in background?

    Hi, i have attached a file with the progress indicator.
    This eems to work ok.
    What are you trying to do with it?

    Sean
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    12-23-2011
    Location
    Mumbai
    MS-Off Ver
    Excel 2007
    Posts
    1

    Re: How to show a Progress bar while macro is running in background?

    I have several Sub modules in a Code which are called one by one.
    Example
    Call Initiate
    Call Find_acc
    Call Find_Acc_c
    Call lookup_st
    Call Failed
    Call Cancel_AutoSettle

    How can I show status on which sub procedure is running and the percentage completed

  6. #6
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,624

    Re: How to show a Progress bar while macro is running in background?

    Rajesh Balakrishnan,
    Unfortunately your post does not comply with Rule 2 of our Forum RULES. Do not post a question in the thread of another member -- start your own thread.

    If you feel an existing thread is particularly relevant to your need, provide a link to the other thread in your new thread.

    Old threads are often only monitored by the original participants. New threads not only open you up to all possible participants again, they typically get faster response, too.
    Ben Van Johnson

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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