Hi, I am working on an existing vba script - the shapes are currently uniform & the existing script is as follows:
Select Case sRAG
Case "R", "Red"
Selection.ShapeRange.ShapeStyle = msoShapeStylePreset38
Selection.ShapeRange.Fill.ForeColor.RGB = RGB(255, 0, 0)
Selection.ShapeRange.Line.ForeColor.RGB = RGB(0, 0, 0)
Selection.ShapeRange.Line.Weight = 0.5
ActiveSheet.Shapes.AddLabel(msoTextOrientationHorizontal, BaseLeft - gShapeSize * 2, nTop - 2, 0#, 0#).Select
Selection.ShapeRange(1).TextFrame.AutoSize = msoTrue
Selection.Font.Name = "Arial"
Selection.Font.Size = DescFont
Selection.Font.ColorIndex = xlAutomatic
Selection.Characters.Text = Format(sMilestoneBFinish, "DD/MM")
I want to size the shapes depending on the weight of the issue as per a column in the workbook small would remain the current size, medium would be larger & large would be larger again - what changes do I need to make to the existing script?
Many thanks
Select Case sRAG
Case "R", "Red"
Selection.ShapeRange.ShapeStyle = msoShapeStylePreset38
Selection.ShapeRange.Fill.ForeColor.RGB = RGB(255, 0, 0)
Selection.ShapeRange.Line.ForeColor.RGB = RGB(0, 0, 0)
Selection.ShapeRange.Line.Weight = 0.5
ActiveSheet.Shapes.AddLabel(msoTextOrientationHorizontal, BaseLeft - gShapeSize * 2, nTop - 2, 0#, 0#).Select
Selection.ShapeRange(1).TextFrame.AutoSize = msoTrue
Selection.Font.Name = "Arial"
Selection.Font.Size = DescFont
Selection.Font.ColorIndex = xlAutomatic
Selection.Characters.Text = Format(sMilestoneBFinish, "DD/MM")
I want to size the shapes depending on the weight of the issue as per a column in the workbook small would remain the current size, medium would be larger & large would be larger again - what changes do I need to make to the existing script?
Many thanks