Excel VBA - Moving Shape to specific position

Hi guys,

Could anyone tell me how can I move a Text Box called "X" to a specific position

I am trying something like this, but getting error!

ActiveSheet.Shapes("X").Select
Selection.ShapeRange.Move(x,y)

Thanks in advance,

Aldo.




Answer this question

Excel VBA - Moving Shape to specific position

  • Lino17580

    Hello,
    If you are using a userform and that textbox is inside the userform then you can use the .left and .top properties of the textbox.
    Still I don't know if that works for a loose textbox in a spreadsheet.


  • azaclauson

    The only option I have found is... (.IncrementLeft, IncrementTop), but only moves it from one place to another. What I look for is the possibility to determinate the exact position I need.

    Aldo.



  • Dabi

    try .shapes(X).top = and .shapes(X).left =



  • Excel VBA - Moving Shape to specific position