Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi,
The below code displays a percentage like bar on the screen regarding to the numerical values in the sub's. I need to use a variable for this (preferably taking the cell H1 value on Sheet1). Is this possible? '========================== Sub blue() ActiveCell.FormulaR1C1 = _ "IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII IIIIIIIIIIIIIIIIIIIIIIIIII IIIIIIIIIIIIIIIIIIIIIIIII" With ActiveCell.Characters(Start:=1, Length:=20).Font .Name = "Arial" .FontStyle = "Bold" .Size = 10 .Strikethrough = False .Superscript = False .Subscript = False .OutlineFont = False .Shadow = False .Underline = xlUnderlineStyleNone .ColorIndex = 5 End With End Sub Sub normal() ActiveCell.FormulaR1C1 = _ "IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII IIIIIIIIIIIIIIIIIIIIIIIIII IIIIIIIIIIIIIIIIIIIIIIIII" With ActiveCell.Characters(Start:=21, Length:=90).Font .Name = "Arial" .FontStyle = "Normal" .Size = 10 .Strikethrough = False .Superscript = False .Subscript = False .OutlineFont = False .Shadow = False .Underline = xlUnderlineStyleNone .ColorIndex = 1 End With End Sub '----------------------------------------------- Private Sub CommandButton1_Click() blue normal End Sub '======================= TIA J_J |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
What approach should I adopt ..... | Excel Discussion (Misc queries) | |||
Help with a formula. Lookup? referance? | Excel Worksheet Functions | |||
Circular Referance | Excel Discussion (Misc queries) | |||
How to referance a GroupName | Excel Programming | |||
Cross Referance | Excel Programming |