Share via


Worksheet.SetBackgroundPicture Method

Excel Developer Reference

Sets the background graphic for a worksheet.

Syntax

expression.SetBackgroundPicture(Filename)

expression   A variable that represents a Worksheet object.

Parameters

Name Required/Optional Data Type Description
Filename Required String The name of the graphic file.

Example

This example sets the background graphic for worksheet one.

Visual Basic for Applications
  Worksheets(1).SetBackgroundPicture "c:\graphics\watermark.gif"

See Also