Skip to content

Latest commit

 

History

History
42 lines (26 loc) · 896 Bytes

Excel.Worksheet.SetBackgroundPicture.md

File metadata and controls

42 lines (26 loc) · 896 Bytes
title keywords f1_keywords api_name ms.assetid ms.date ms.localizationpriority
Worksheet.SetBackgroundPicture method (Excel)
vbaxl10.chm175076
vbaxl10.chm175076
Excel.Worksheet.SetBackgroundPicture
5cff4730-24ba-6147-76c9-e1f9eb970989
05/30/2019
medium

Worksheet.SetBackgroundPicture method (Excel)

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.

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

[!includeSupport and feedback]