Status Bar / Percentage bar?

deerae

New Member
Joined
Feb 9, 2012
Messages
17
Hey i am new to the forum nice to meet you all.

I stumbled upon a problem which i cant solve.

Please help me.

2lnbb12.jpg


I want a formula that can make this.

VBA/Excel i dont care i hope you can get it to work thanks !
 

Excel Facts

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.
Exacly this could only solved with VBA.
But you could do something similar with a formula-
You could use the REPT function for this

Set the font in cell A1 to "Wingdings" and type the following formula in Cells A2

=REPT("n",A1)
 
Upvote 0
And here is my VBA solution

  1. Press ALT+F11 to open VBA Editor
  2. Insert a new Module
  3. Paste this code
  4. Code:
    [*]Function ProgressBar(ByVal MyValue As Double, ByVal MyShapeName As String)
        On Error Resume Next
        ActiveSheet.Shapes(MyShapeName).Width = MyValue
        On Error GoTo 0
    End Function
    [*]
  5. Go to your worksheet and insert a Shape (recangle)
  6. Select the recangle
  7. Click in the Formular bar and refernce your value cell. Type like =$A$1 if your percentage value sits in cells A1
  8. goto another cell (free choice) and type =ProgressBar(A1;"NAME OF YOUR RECANGLE")
  9. And thats it! :)
If you now change the value in Cell A1 the width of your new Progressbar will change too! :biggrin:
 
Upvote 0
And here is my VBA solution

  1. Press ALT+F11 to open VBA Editor
  2. Insert a new Module
  3. Paste this code
  4. Code:
    [*]Function ProgressBar(ByVal MyValue As Double, ByVal MyShapeName As String)
        On Error Resume Next
        ActiveSheet.Shapes(MyShapeName).Width = MyValue
        On Error GoTo 0
    End Function
    [*]
  5. Go to your worksheet and insert a Shape (recangle)
  6. Select the recangle
  7. Click in the Formular bar and refernce your value cell. Type like =$A$1 if your percentage value sits in cells A1
  8. goto another cell (free choice) and type =ProgressBar(A1;"NAME OF YOUR RECANGLE")
  9. And thats it! :)
If you now change the value in Cell A1 the width of your new Progressbar will change too! :biggrin:


i get stuck at step 7

could you explain it more clearly what you mean by formular bar?
i am using excel 2000 maybe thats the problem why i didnt understand what you actually ment?
 
Upvote 0
its a lot to ask but could you make an example workbook for me?

thanks ..

i tried it but it doesnt change the rectangle into a progressbar

thanks!
 
Upvote 0

Forum statistics

Threads
1,215,944
Messages
6,127,835
Members
449,411
Latest member
adunn_23

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