Rosenrot
04-20-2017, 03:49 AM
Hi Everyone,
I’ve created the macro the purpose of which is to duplicate selected shape and then transform it into small red box. However, I would like to enhance it a little bit by aligning two boxes - it would be great to have the small red box always in the bottom left corner of initially selected shape. Is it possible to have all of this in one macro?
Sub DuplicateBox()
Dim osld As Slide
Dim oshp As Shape
Set oshp = ActiveWindow.Selection.ShapeRange(1)
oshp.Select
With oshp.Duplicate
.Fill.ForeColor.RGB = RGB(204, 0, 0)
.Line.Visible = False
.Width = 5.6692913386
.Height = 5.6692913386
End With
End Sub
I’ve created the macro the purpose of which is to duplicate selected shape and then transform it into small red box. However, I would like to enhance it a little bit by aligning two boxes - it would be great to have the small red box always in the bottom left corner of initially selected shape. Is it possible to have all of this in one macro?
Sub DuplicateBox()
Dim osld As Slide
Dim oshp As Shape
Set oshp = ActiveWindow.Selection.ShapeRange(1)
oshp.Select
With oshp.Duplicate
.Fill.ForeColor.RGB = RGB(204, 0, 0)
.Line.Visible = False
.Width = 5.6692913386
.Height = 5.6692913386
End With
End Sub