Hi,
I inherrited this script from someone else and can't really understand it. What the script will do is create a graph with all kind of balloons. Within this balloon a number will appear. Now the problem is that the font of this number is white. This is hard to read so we want it black. However, struggling to find the correct syntax
This is part of the code where i think the correction needs to be made
Any feedback would greatly be appreciated.
Set shp = wsg.Shapes.AddShape(msoShapeOval, X, Y, 16, 16)
shp.Fill.ForeColor.RGB = RGB(corR, corG, corB)
shp.Name = "shp" & linha
' Set hyp = shp.Hyperlink.
' shp.Hyperlink.Address ("Data!A1:B2")
ReDim Preserve ashp(shpcont)
ashp(shpcont) = shp.Name
Set tf = shp.TextFrame
tf.Characters.Text = valcol
tf.Characters.Font.Size = 6
tf.HorizontalAlignment = xlHAlignCenter
tf.VerticalAlignment = xlVAlignCenter
End If
Kind regards,
Roland
I inherrited this script from someone else and can't really understand it. What the script will do is create a graph with all kind of balloons. Within this balloon a number will appear. Now the problem is that the font of this number is white. This is hard to read so we want it black. However, struggling to find the correct syntax
This is part of the code where i think the correction needs to be made
Any feedback would greatly be appreciated.
Set shp = wsg.Shapes.AddShape(msoShapeOval, X, Y, 16, 16)
shp.Fill.ForeColor.RGB = RGB(corR, corG, corB)
shp.Name = "shp" & linha
' Set hyp = shp.Hyperlink.
' shp.Hyperlink.Address ("Data!A1:B2")
ReDim Preserve ashp(shpcont)
ashp(shpcont) = shp.Name
Set tf = shp.TextFrame
tf.Characters.Text = valcol
tf.Characters.Font.Size = 6
tf.HorizontalAlignment = xlHAlignCenter
tf.VerticalAlignment = xlVAlignCenter
End If
Kind regards,
Roland