iam giving input in A1 TO A10 In sheet 1
at sheet 2 shapes should appear with specific position as mentioned in sheet 1(A1:A10)
Can i get help with this?
at sheet 2 shapes should appear with specific position as mentioned in sheet 1(A1:A10)
Can i get help with this?
Code:
Sub populatearrow()
Dim shapi As Shape
Set shapi = Sheets("Sheet 2").Shapes("Rectangle 2")
Dim shap As Shape
Dim x
Dim position
position = shapi.Left
For x = 2 To 11
Set shap = Sheets("Sheet 2").Shapes.AddShape(shapi.AutoShapeType, position + Sheets("Sheet 2").Cells(1, 2).Width * 10, shapi.Top, shapi.Width, shapi.Height)
With shapi
Selection.ShapeRange.ShapeStyle = msoShapeStylePreset7
Selection.Formula = "=$A$1"
End With
shap.Visible = True
position = shap.Left
Set shap = Nothing
Next
Set shapi = Nothing
End Sub
Last edited: