How do i get Excel 2003 to have a progression bar in the adjacent.

R

Ravi

i use excel as a sales lead tracking tool. I have the probability of winning
in % and it keeps changing. How do i get excel 2003 to show me this visually
(in an adjacent cell) as a progression bar. Alternatively can i make excel
pick a value (in text form) from elsehere in the sheet?
 
M

Myrna Larson

Here's one way:

Use the Drawing Toolbar to put a rectangle over the cell where you want to see
the bar and give it a colored interior. Set it's properties to Move but Don't
size with Cells.

I'll assume its name is "Rectangle 1", and cell A2 contains the percentage you
want to track. Then put these routines in the code module for that worksheet.
Set cell A2 to the value 1 (or 100%), then modify the multiplier (I used 100)
so the width is what you want for full scale.

Private Sub Worksheet_Calculate()
RectangleWidth
End Sub

Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Address = "$A$2" Then RectangleWidth
End Sub

Private Sub RectangleWidth()
Me.DrawingObjects("Rectangle 1").Width = Range("A2").Value * 100
End Sub
 
R

Ravi

Thanks Myrna,

Will try. Though i Should admit that i will be trying code module for the
first time
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top