ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Copy layout to all worksheets (https://www.excelbanter.com/excel-programming/314062-copy-layout-all-worksheets.html)

Jean-Paul De Winter

Copy layout to all worksheets
 
Hi,
I have a workbook with 25 worksheets
The first sheet is my "template"
The question is,
When I change something in the template sheet, layout/color of a cell, with
of a column, validation of a range of cells....I want it to be changed in
all sheets.
How can this be done?
Thanks
JP



Myrna Larson

Copy layout to all worksheets
 
You have to Group the sheets before you make the changes. There's more
information in Help. Beware, this can be dangerous if you forget to ungroup
the sheets before you begin to enter data.

On Tue, 19 Oct 2004 20:50:45 GMT, "Jean-Paul De Winter"
wrote:

Hi,
I have a workbook with 25 worksheets
The first sheet is my "template"
The question is,
When I change something in the template sheet, layout/color of a cell, with
of a column, validation of a range of cells....I want it to be changed in
all sheets.
How can this be done?
Thanks
JP



keepITcool

Copy layout to all worksheets
 


if you select several sheets (or all)
the window caption will change to Myfile.xls [Group]
and the tabs are "highlighted" (white with my scheme)

Then: when you make changes in the activesheet
those changes are made to all (grouped) sheets.

However not all menu's etc are available in grouped mode...
ANd it's easy to forget you are in "grouped mode"
so be careful.

Another alternative is to let the macrorecorder run when you make your
changes....

Review the recorded code then run it on the other sheets.

Sub DoIt()
Dim i%, sProc$
sProc = InputBox("Which macro?", , "Macro1")
If sProc < "" Then
For i = 2 To Worksheets.Count
Worksheets(i).Activate
Run (sProc)
Next
End If







keepITcool

< email : keepitcool chello nl (with @ and .)
< homepage: http://members.chello.nl/keepitcool


"Jean-Paul De Winter" wrote:

Hi,
I have a workbook with 25 worksheets
The first sheet is my "template"
The question is,
When I change something in the template sheet, layout/color of a cell,
with of a column, validation of a range of cells....I want it to be
changed in all sheets.
How can this be done?
Thanks
JP






All times are GMT +1. The time now is 04:20 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com