help with macro code

anyone know what the vba code would be to do this?

Parents
No Data
Reply
  • HI.

    Try this.

    s will remain referenced to the circle in this code.

     

    Sub circleText()
       
        Dim s As Shape, sText As Shape, sr As ShapeRange
       
        Set s = ActiveLayer.CreateEllipse2(0, 0, 12)
        Set sText = ActiveLayer.CreateArtisticText(0, 0, "Test Text")
        sText.SetSize 8
       
        sText.Text.FitToPath s
        s.CreateSelection
       
    End Sub

Children