Results 1 to 17 of 17

Thread: Check if shape is in specific location in slide

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #3
    VBAX Expert TrippyTom's Avatar
    Joined
    Jul 2005
    Location
    New York, NY (USA)
    Posts
    556
    Location
    oh by the way, here's the DoLine process it calls in the above macro:

    Sub DoLine(I As Long, Nm As String, Tp As Single, Lft As Single, Wdth As Single, Ht As Single)
    Dim myColor As Long
    myColor = RGB(255, 0, 0) 'red <-- Change this value to whatever you want if you don't like red
        With ActivePresentation.Slides(I).Shapes.AddShape(Type:=msoShapeRectangle, Top:=Tp, Left:=Lft, width:=Wdth, height:=Ht)
        .Name = Nm & CStr(I)
        .Line.ForeColor.RGB = myColor
        End With
    End Sub
    Last edited by Aussiebear; 04-28-2023 at 01:41 AM. Reason: Adjusted the code tags
    Office 2010, Windows 7
    goal: to learn the most efficient way

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •