%Progress bar for calling other macros?

Fabulist

Board Regular
Joined
Jan 28, 2014
Messages
110
Hello,

I have a sub that calls multiple other macros that mainly hide, clear and adjust rows as well as copy paste certain areas to others.

Code:
Sub Hide_And_Adjust()
Application.Calculation = xlCalculationManual
Application.ScreenUpdating = False
Application.DisplayStatusBar = False
Application.EnableEvents = False

    Call Sheet3.Hide_Rows
    Call Sheet4.Hide_Rows
    Call Sheet5.Hide_Rows
    Call Sheet6.Hide_Rows
    Call Sheet6.Hide_Columns_Execution
    Call Sheet7.Hide_Rows
    Call Sheet8.Hide_Rows
    Call Sheet9.Hide_Rows
    Call Sheet10.Hide_Rows
    Call Sheet11.Hide_Rows
    Call Sheet12.Hide_Rows
    Call Sheet13.Hide_Rows
    Call Sheet14.Hide_Rows
    Call Sheet15.Hide_Rows
    Call Sheet16.Hide_Rows
    Call Sheet17.Hide_Rows
    Call Sheet18.Hide_Rows
    Call Sheet18.Hide_Columns_Execution
    Call Sheet19.Hide_Rows
    Call Sheet19.Hide_Columns_Execution
    Call Sheet20.Hide_Rows
    Call Sheet21.Hide_Rows
    Call Sheet22.Hide_Rows
    Call Sheet23.Hide_Rows
    Call Sheet24.Hide_Rows
    Call Sheet25.Hide_Rows
    Call Sheet26.Hide_Rows
    Call Sheet27.Hide_Rows
    Call Sheet27.Hide_Columns_Execution
    Call Sheet28.Hide_Rows
    Call Sheet28.Hide_Columns_Execution
    Call Sheet29.Hide_Rows
    Call Sheet30.Hide_Rows
    Call Sheet30.Hide_Columns_Execution
    Call Sheet31.Hide_Rows
    Call Sheet31.Hide_Columns_Execution
    Call Sheet32.Hide_Rows
    Call Sheet33.Hide_Rows
    Call Sheet34.Hide_Rows
    Call Sheet35.Hide_Rows
    Call Sheet36.Hide_Rows
    Call Sheet37.Hide_Rows
    Call Sheet37.Hide_Columns_Execution
    Call Sheet38.Hide_Rows
    Call Sheet39.Hide_Rows
    Call Sheet40.Hide_Rows
    Call Sheet41.Hide_Rows
    Call Sheet42.Hide_Rows
    Call Sheet42.Hide_Columns_Execution
    Call Sheet43.Hide_Rows
    Call Sheet45.Hide_Rows
    Call Sheet46.Hide_Rows
    Call Sheet47.Hide_Rows
    Call Sheet48.Hide_Rows
    Call Sheet49.Hide_Rows
    Call Sheet51.Hide_Rows
    Call Sheet52.Hide_Rows
    Call Sheet53.Hide_Rows
    Call Sheet55.Hide_Rows
    Call Sheet56.Hide_Rows
    Call Sheet58.Hide_Rows
    Call Sheet58.Hide_Columns_Execution
    Call Sheet60.Hide_Rows
    Call Sheet61.Hide_Rows
    Call Sheet61.Hide_Columns_Execution
    Call Sheet62.Hide_Rows
    Call Sheet63.Hide_Rows
    Call Sheet64.Hide_Rows
    Call Sheet64.Hide_Columns_Execution
    
    Application.Wait (Now + TimeValue("0:00:01"))
    Call Sheet63.Linked_Picture_Paste
    Application.Wait (Now + TimeValue("0:00:01"))
    Call Sheet51.Linked_Picture_Paste
    
Application.Calculation = xlCalculationAutomatic
Application.ScreenUpdating = True
Application.DisplayStatusBar = True
Application.EnableEvents = True
End Sub

Would it be possible to create a percentage-based progress bar for this entire process and maybe even show which "Call" it is currently performing?
 

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"
Upvote 0
I still haven't figured this out after numerous retries, my understanding is limited on the subject.
 
Upvote 0
As it's not something I've ever done, especially with multiple calls, I'm afraid I cannot help.
Hopefully somebody else will be able to help.
 
Upvote 0

Forum statistics

Threads
1,223,884
Messages
6,175,174
Members
452,615
Latest member
bogeys2birdies

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top