SetBackgroundPicture Method

Microsoft Excel Visual Basic

Sets the background graphic for a worksheet or chart.

expression.SetBackgroundPicture(FileName)

expression    Required. An expression that returns a Worksheet or Chart object.

FileName    Required String. The name of the graphic file.

Example

This example sets the background graphic for worksheet one.

Worksheets(1).SetBackgroundPicture "c:\graphics\watermark.gif"