SetBackgroundPicture Method

Applies To

Chart object, Worksheet object.

Description

Sets the background graphic for a worksheet or chart.

Syntax

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\Watrmark.bmp"