+ Reply to Thread
Results 1 to 4 of 4

Macro to convert numbers to progress bar

  1. #1
    Registered User
    Join Date
    04-20-2012
    Location
    Canada
    MS-Off Ver
    Excel 2003
    Posts
    2

    Macro to convert numbers to progress bar

    Hi, this is my first post on these forums and hopefully won't be my last.

    I need what I think is a fairly simple task completed. I need to be able to convert a number into a proportional amount of cells filled in a row. For example, if I am given the number 5 I need to fill 5 cells across the row that the 5 is in. I will attach an example of what I mean.

    Also if there is a way to change the color of the fill then that would be great as well. That is about it for now, Thanks in advance!
    Attached Files Attached Files
    Last edited by russian66; 04-20-2012 at 03:16 PM.

  2. #2
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: Macro to convert numbers to progress bar

    This will fill in the number of cells based off of what you enter in column A...

    Please Login or Register  to view this content.
    As far as changing the fill, I believe you would have to tell Excel what color you want. Do you want to use another cell for this?

    If so, in column B enter the color index you want....

    http://dmcritchie.mvps.org/excel/colors.htm

    Please Login or Register  to view this content.
    Last edited by jeffreybrown; 04-20-2012 at 02:35 PM.
    HTH
    Regards, Jeff

  3. #3
    Registered User
    Join Date
    04-20-2012
    Location
    Canada
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: Macro to convert numbers to progress bar

    Thanks Jeff,

    That was a great explanation and very concise code. I appreciate the quick response, this is exactly what I was looking for. I should be able to tweak it from here to fit it into my report.

    Cheers,

    Mike

  4. #4
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    re: Macro to convert numbers to progress bar

    Hi Mike,

    Great to hear and thanks for the feeback

+ 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