SetBackgroundPicture Method

Applies To

Chart Object, Worksheet Object.

Description

Sets the background graphic for a worksheet or chart. This method is available only in Microsoft Excel for Windows 95.

Syntax

object.SetBackgroundPicture(fileName)

object

Required. The Worksheet or Chart object.

fileName

Required. The graphic file to be displayed.

Example

This example sets the background graphic for worksheet one.


Worksheets(1).SetBackgroundPicture "c:\graphics\watrmark.bmp"