VBA-Programmierung in Microsoft Excel

Tutorial: Excel-Beispiele

VBA-Begriff: Beispiel zur ExtrusionColor-Eigenschaft

In diesem Beispiel wird in myDocument eine Ellipse eingefügt, auf eine Tiefe von 50 Punkt projiziert und als Projektionsfarbe Violett festgelegt.

Set myDocument = Worksheets(1)
Set myShape = myDocument.Shapes.AddShape(msoShapeOval, _
    90, 90, 90, 40)
With myShape.ThreeD
    .Visible = True
    .Depth = 50
    .ExtrusionColor.RGB = RGB(255, 100, 255)
    ' RGB value for purple
End With