UserPicture Method
Applies To
ChartFillFormat object.
Description
Fills the specified shape with an image.
Syntax
expression.UserPicture(PictureFile, PictureFormat, PictureStackUnit, PicturePlacement)
expression An expression that returns a ChartFillFormat object.
PictureFile Required String. The name of the specified picture file.
PictureFormat Optional Long. The format of the specified picture. Can be one of the following XlChartPictureType constants: xlScale, xlStackScale, xlStack, or xlStretch.
PictureStackUnit Optional Long. The stack or scale unit for the specified picture (depends on the PictureFormat argument).
PicturePlacement Optional Long. The placement of the specified picture. Can be one of the following XlChartPicturePlacement constants: xlSides, xlEnd, xlEndSides, xlFront, xlFrontSides, xlFrontEnd, or xlAllFaces.
Example
This example sets the chart's fill format so that it's based on a user-supplied picture.
With myChart.ChartArea.Fill
.UserPicture PictureFile:="C:\My Documents\brick.bmp"
.Visible = True
End With