Results 1 to 28 of 28

How to place and define progress bar with percentage

Threaded View

  1. #1
    Valued Forum Contributor
    Join Date
    03-28-2014
    Location
    Kuala Lumpur, Malaysia
    MS-Off Ver
    Excel 2016
    Posts
    696

    How to place and define progress bar with percentage

    Hi,

    My VBA code will copy and paste several workbooks into master list.

    the cells to be pasted will be starting on cells(13,9) until cells(13,501) or Range("I13:SG13")

    while the max row will be determined by Cells(Rows.Count, "F").End(xlUp).Row


    Here is the progress bar code I found in internet, maxrow/column has been changed to my requirement but how to place my VBA code to this script? the one highlighted in red, I guess it

    Sub ShowProgressInStatus()
        Dim Percent As Integer
        Dim PercentComplete As Single
        Dim MaxRow, MaxCol As Integer
        MaxRow = Cells(Rows.Count, "F").End(xlUp).Row
        MaxCol = 501
        Percent = 0
        For irow = 13 To MaxRow
            For icol = 9 To MaxCol
                    
                 Worksheets("Sheet1").Cells(irow, icol).Value = irow
            Next
            PercentComplete = irow * icol / (MaxRow * MaxCol)
            Application.StatusBar = Format(PercentComplete, "0%") & " Completed"
            DoEvents
        Next
        Application.StatusBar = ""
    End Sub
    Last edited by Faridwahidi; 05-26-2014 at 06:46 AM.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Progress percentage function for student's grades
    By ckonsta in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-20-2013, 02:17 AM
  2. Progress bar or indicator to display calculation percentage
    By Dan27 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-12-2013, 01:13 PM
  3. [SOLVED] Format Percentage to 1 Decimal Place
    By Gos-C in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-09-2013, 08:01 PM
  4. percentage progress bar in vba
    By djwaz69 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-17-2013, 10:34 PM
  5. Replies: 1
    Last Post: 10-05-2007, 10:14 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