bonjour amis xldien.
J'ai une pettie question:
Comment intégrer un nom de variable la dedans:
j'ai une variable string qui s'appelle cote
j'aimerais que la position du rectangle change en fonction de cote mais je sais pas comment intégrer cote dans With Origine.Parent.Shapes.AddShape(msoShapeRectangle, Origine.Left + (posDeb * Echelle), Origine.Top, Longueur * Echelle, 3)
MERCI bcp et dsl de mon état de débutant
J'ai une pettie question:
Comment intégrer un nom de variable la dedans:
Code:
With Origine.Parent.Shapes.AddShape(msoShapeRectangle, Origine.Left + (posDeb * Echelle), Origine.[COLOR="Red"]Top[/COLOR], Longueur * Echelle, 3)
j'ai une variable string qui s'appelle cote
Code:
If .Range("O" & Cpt).Value = "g" Then
Cote = "top"
Else: Cote = "bottom"
End If
j'aimerais que la position du rectangle change en fonction de cote mais je sais pas comment intégrer cote dans With Origine.Parent.Shapes.AddShape(msoShapeRectangle, Origine.Left + (posDeb * Echelle), Origine.Top, Longueur * Echelle, 3)
MERCI bcp et dsl de mon état de débutant