Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default Creating a row that is constant and updatable across all worksheet

I have a workbookwith several worksheets in it. I want to create a type of
header row that remains constant across all worksheets, but can be updated in
all by only updating one item. What is the best way to accomplish this, do I
need a type of master list in the same workbook?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,696
Default Creating a row that is constant and updatable across all worksheet

It can be done. How depends on what you're looking to do.

You can always use VB code thatr views your updated item and will run either
an If Then r a Case Select depending on the number of possible options.

But if it's relatively simple, you can just do If statements in your header
rows to indicate what you want them to say. Copy and paste from one extrnal
sheet to all the others to achieve the same effect.

Perhaps if you give a bit more detail?

"Global Sys Admin" wrote:

I have a workbookwith several worksheets in it. I want to create a type of
header row that remains constant across all worksheets, but can be updated in
all by only updating one item. What is the best way to accomplish this, do I
need a type of master list in the same workbook?

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 52
Default Creating a row that is constant and updatable across all worksheet

I have implemented this in this fashion:
On Sheet1, I enter the common values in Row 1.
On each of the other sheets, I enter this in cell A1:
=Sheet1!A1
and copy across for as many columns as necessary.
If I want to change the common header, I do it on Sheet1, and it
automatically propagates to all other sheets.
--
TedMi

"Global Sys Admin" wrote:

I have a workbookwith several worksheets in it. I want to create a type of
header row that remains constant across all worksheets, but can be updated in
all by only updating one item. What is the best way to accomplish this, do I
need a type of master list in the same workbook?

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 364
Default Creating a row that is constant and updatable across all worksheet

One way is to to
1. copy the heading in A1 of Sheet 1 to A1 of Sheet 2, enter this in A1 of
Sheet 2
=Sheet1!A1
2. You can drag that to cover all the headings
3. Then you can copy the first row and paste in each of the Sheets

You can write a code which can loop through the sheets and paste the header
in Sheet1 to other sheets...(Change F in A1:F1 to the last Col letter in your
range

Sub CopyHeaderToAllSheets()
Dim ws As Worksheet
For Each ws In ActiveWorkbook.Worksheets
If ws.Name < "Sheet1" Then
On Error Resume Next 'Will continue if an error results
Sheets("Sheet1").Select
Range("A1:F1").Select
Selection.Copy
ws.Range("A1").Select
' Range("A1").Select
ws.Paste
ws.Range("A1").Select
End If
Next ws
End Sub

"Global Sys Admin" wrote:

I have a workbookwith several worksheets in it. I want to create a type of
header row that remains constant across all worksheets, but can be updated in
all by only updating one item. What is the best way to accomplish this, do I
need a type of master list in the same workbook?

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default Creating a row that is constant and updatable across all works

Thank you for the info, the first part of this works fine. However, if I
used the looping method, how would I loop through all the tabs if I've
changed the names from Sheet1, Sheet2, etc.?

"Sheeloo" wrote:

One way is to to
1. copy the heading in A1 of Sheet 1 to A1 of Sheet 2, enter this in A1 of
Sheet 2
=Sheet1!A1
2. You can drag that to cover all the headings
3. Then you can copy the first row and paste in each of the Sheets

You can write a code which can loop through the sheets and paste the header
in Sheet1 to other sheets...(Change F in A1:F1 to the last Col letter in your
range

Sub CopyHeaderToAllSheets()
Dim ws As Worksheet
For Each ws In ActiveWorkbook.Worksheets
If ws.Name < "Sheet1" Then
On Error Resume Next 'Will continue if an error results
Sheets("Sheet1").Select
Range("A1:F1").Select
Selection.Copy
ws.Range("A1").Select
' Range("A1").Select
ws.Paste
ws.Range("A1").Select
End If
Next ws
End Sub

"Global Sys Admin" wrote:

I have a workbookwith several worksheets in it. I want to create a type of
header row that remains constant across all worksheets, but can be updated in
all by only updating one item. What is the best way to accomplish this, do I
need a type of master list in the same workbook?



  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 22,906
Default Creating a row that is constant and updatable across all works

In the code change "Sheet1" to the name of the sheet with the headings.

Or change to Sheets(1) which is the codename of first sheet.

No need to do anything else.

For Each ws In ActiveWorkbook.Worksheets doesn't care about sheetnames


Gord Dibben MS Excel MVP

On Thu, 9 Oct 2008 12:31:01 -0700, Global Sys Admin
wrote:

Thank you for the info, the first part of this works fine. However, if I
used the looping method, how would I loop through all the tabs if I've
changed the names from Sheet1, Sheet2, etc.?

"Sheeloo" wrote:

One way is to to
1. copy the heading in A1 of Sheet 1 to A1 of Sheet 2, enter this in A1 of
Sheet 2
=Sheet1!A1
2. You can drag that to cover all the headings
3. Then you can copy the first row and paste in each of the Sheets

You can write a code which can loop through the sheets and paste the header
in Sheet1 to other sheets...(Change F in A1:F1 to the last Col letter in your
range

Sub CopyHeaderToAllSheets()
Dim ws As Worksheet
For Each ws In ActiveWorkbook.Worksheets
If ws.Name < "Sheet1" Then
On Error Resume Next 'Will continue if an error results
Sheets("Sheet1").Select
Range("A1:F1").Select
Selection.Copy
ws.Range("A1").Select
' Range("A1").Select
ws.Paste
ws.Range("A1").Select
End If
Next ws
End Sub

"Global Sys Admin" wrote:

I have a workbookwith several worksheets in it. I want to create a type of
header row that remains constant across all worksheets, but can be updated in
all by only updating one item. What is the best way to accomplish this, do I
need a type of master list in the same workbook?


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Updatable Spreadsheet Susan Excel Worksheet Functions 0 July 2nd 07 02:42 PM
creating a "constant" number to be used in formulas tkg Excel Discussion (Misc queries) 3 February 14th 07 12:33 AM
Need Help Creating a Macro to Multiply Cells by a Constant Number Tyn Excel Discussion (Misc queries) 5 February 12th 07 10:40 AM
Non updatable Unique Random Number Ian Excel Worksheet Functions 30 September 28th 06 08:19 PM
Insert & link a graphic file in Excel 2003 -- updatable pictures! ODI Excel Discussion (Misc queries) 7 November 14th 05 02:36 PM


All times are GMT +1. The time now is 10:59 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"