Worksheet.SetBackgroundPicture Method (Excel)

Office 2013 and later
GitHub-Mark-64px

Contribute to this content

Use GitHub to suggest and submit changes. See our guidelines for contributing to VBA documentation.

Sets the background graphic for a worksheet.

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.

This example sets the background graphic for worksheet one.

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