API Documentation > CorelDRAW > 2025-v26 > EffectExtrude > IVGEffectExtrude
EffectExtrude.Depth property
Gets or sets the extrude depth
Syntax:
Property Get Depth() As Long
Property Let Depth(ByVal Value As Long)
Remarks:
The Depth property returns or specifies the depth of the extrusion. This parameter cannot be used with a parallel extrusion.
Examples:
The following VBA example selects all extruded shapes whose extrusion depth is more than 20 units.
Sub Test()
Dim s As Shape, eff As Effect
Dim sr As New ShapeRange
For Each s In ActivePage.Shapes
  For Each eff In s.Effects

 If eff.Type = cdrExtrude Then


With eff.Extrude


  If .Type <> cdrExtrudeFrontParallel And .Type <> cdrExtrudeFrontParallel Then



 If .Depth > 20 Then




sr.Add s




If Not .ShowBevelOnly Then sr.Add .ExtrudeGroup




  If .UseBevel Then sr.Add .BevelGroup




  End If




End If



 End With



 Exit For


  End If


Next eff

 Next s

 sr.CreateSelection
  
End Sub