Re,
myDocument est déclaré mais non utilisé.
Dans ton code tu as un With/End With inutile si tu ne manipules que le texte.
Texte couleur de fond et cadre :
With Worksheets("Feuil1").Shapes("Text1")
With .TextFrame.Characters
.Text = "TOTO"
.Font.Color = vbBlue
' ou .Font.ColorIndex = 56 ' (1 à 56)
End With
With .TextFrame
.HorizontalAlignment = xlCenter ' centré horizontalement
.VerticalAlignment = xlCenter ' texte centré verticalement
End With
With .Fill
.ForeColor.SchemeColor = 44
'ou .ForeColor.RGB = RGB(r, v, b)
.Transparency = 0.5
End With
With .Line
.Weight = 2.5 ' épaisseur du cadre
.ForeColor.SchemeColor = 12 ' couleur du cadre
' ou .ForeColor.RGB = RGB(r, v, b)
End With
End With
Voilà, tu as presque tout ce qu'il te faut...
Cheyenne