platypus007
New Member
- Joined
- Oct 24, 2019
- Messages
- 19
- Office Version
- 2016
- Platform
- Windows
Hi, I need help: I have only one row (lets call it row10) with values from 1 to 5. I need to automatically place text box to cell with value 3 (into row10).Now I have this VBA for exact cell...How can I do it?
VBA Code:
Public Sub Area33A()
MoveShape ActiveSheet.Shapes("kriz"), Range("v43")
End Sub
Private Sub MoveShape(ByVal shp As Excel.Shape, ByVal Target As Excel.Range)
shp.IncrementLeft -(shp.TopLeftCell.Left - Target.Left)
shp.IncrementTop -(shp.TopLeftCell.Top - Target.Top)
End Sub