Name
chartfillformat
.UserTextured(TextureFile
)
Synopsis
Applies a picture file as a texture to the fill. Pictures are tiled to fit the fill area.
Argument |
Settings |
---|---|
|
The filename of the picture to apply |
The following code tiles a picture to fill the chart area:
Sub UserPictureTexture( ) Dim chrt As Chart, cf As ChartFillFormat ' Get the chart. Set chrt = ActiveChart ' Get the chart area fill. Set cf = chrt.ChartArea.Fill ' Make the fill visible. cf.Visible = True ' Display a picture. cf.UserTextured ThisWorkbook.Path & "\logo.bmp" End Sub
Get Programming Excel with VBA and .NET now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.