title | keywords | f1_keywords | api_name | ms.assetid | ms.date | ms.localizationpriority | ||
---|---|---|---|---|---|---|---|---|
Worksheet.SetBackgroundPicture method (Excel) |
vbaxl10.chm175076 |
|
|
5cff4730-24ba-6147-76c9-e1f9eb970989 |
05/30/2019 |
medium |
Sets the background graphic for a worksheet.
expression.SetBackgroundPicture (FileName)
expression A variable that represents a Worksheet object.
Name | Required/Optional | Data type | Description |
---|---|---|---|
FileName | Required | String | The name of the graphic file. |
This example sets the background graphic for worksheet one.
Worksheets(1).SetBackgroundPicture "c:\graphics\watermark.gif"
[!includeSupport and feedback]