Skip to content

Latest commit

 

History

History
46 lines (29 loc) · 1.14 KB

File metadata and controls

46 lines (29 loc) · 1.14 KB
title Sheets.FillAcrossSheets method (Excel)
keywords vbaxl10.chm152077
f1_keywords
vbaxl10.chm152077
api_name
Excel.Sheets.FillAcrossSheets
ms.assetid eee9b0a2-0727-dfc8-ea7b-d7c582466d5c
ms.date 05/15/2019
ms.localizationpriority medium

Sheets.FillAcrossSheets method (Excel)

Copies a range to the same area on all other worksheets in a collection.

Syntax

expression.FillAcrossSheets (Range, Type)

expression A variable that represents a Sheets object.

Parameters

Name Required/Optional Data type Description
Range Required Range The range to fill on all the worksheets in the collection. The range must be from a worksheet within the collection.
Type Optional XlFillWith Specifies how to copy the range.

Example

This example fills the range A1:C5 on Sheet1, Sheet5, and Sheet7 with the contents of the same range on Sheet1.

x = Array("Sheet1", "Sheet5", "Sheet7") 
Sheets(x).FillAcrossSheets _ 
 Worksheets("Sheet1").Range("A1:C5")

[!includeSupport and feedback]