Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
Philip Reece-Heal
 
Posts: n/a
Default same named range on multiple worksheets?

I have a acquired a workbook with many worksheets and I want to apply the
same name to the same cell on each worksheet.
To date, the only way I have managed this is to name the cell in the first
worksheet, then for each of the remaining sheets, move the sheet to a new
workbook, name the cell and then move the worksheet back into the original
workbook. Slow and laborious.

Anyone know of a quicker method?

Any suggestions gratefully received

Philip



  #2   Report Post  
Posted to microsoft.public.excel.misc
Ron de Bruin
 
Posts: n/a
Default same named range on multiple worksheets?

Try this macro to do this

Sub Give_name_on_all_sheets()
Dim Sh As Worksheet
For Each Sh In ThisWorkbook.Worksheets
Sheets(Sh.Name).Range("A5").Name = Sh.Name & "!yourname"
Next
End Sub

or do it manual



--
Regards Ron de Bruin
http://www.rondebruin.nl


"Philip Reece-Heal" wrote in message ...
I have a acquired a workbook with many worksheets and I want to apply the same name to the same cell on each worksheet.
To date, the only way I have managed this is to name the cell in the first worksheet, then for each of the remaining sheets, move
the sheet to a new workbook, name the cell and then move the worksheet back into the original workbook. Slow and laborious.

Anyone know of a quicker method?

Any suggestions gratefully received

Philip





  #3   Report Post  
Posted to microsoft.public.excel.misc
Philip Reece-Heal
 
Posts: n/a
Default same named range on multiple worksheets?

Thanks Ron
That macro works a treat. A real timesaver

Thanks also to you Bob. Your method is certainly quicker than my old way

Regards
Philip
"Ron de Bruin" wrote in message
...
Try this macro to do this

Sub Give_name_on_all_sheets()
Dim Sh As Worksheet
For Each Sh In ThisWorkbook.Worksheets
Sheets(Sh.Name).Range("A5").Name = Sh.Name & "!yourname"
Next
End Sub

or do it manual



--
Regards Ron de Bruin
http://www.rondebruin.nl


"Philip Reece-Heal" wrote in message
...
I have a acquired a workbook with many worksheets and I want to apply the
same name to the same cell on each worksheet.
To date, the only way I have managed this is to name the cell in the
first worksheet, then for each of the remaining sheets, move the sheet to
a new workbook, name the cell and then move the worksheet back into the
original workbook. Slow and laborious.

Anyone know of a quicker method?

Any suggestions gratefully received

Philip







  #4   Report Post  
Posted to microsoft.public.excel.misc
ruddojo
 
Posts: n/a
Default same named range on multiple worksheets?

THIS WORKS GREAT! Thank you!

"Ron de Bruin" wrote:

Try this macro to do this

Sub Give_name_on_all_sheets()
Dim Sh As Worksheet
For Each Sh In ThisWorkbook.Worksheets
Sheets(Sh.Name).Range("A5").Name = Sh.Name & "!yourname"
Next
End Sub

or do it manual



--
Regards Ron de Bruin
http://www.rondebruin.nl


"Philip Reece-Heal" wrote in message ...
I have a acquired a workbook with many worksheets and I want to apply the same name to the same cell on each worksheet.
To date, the only way I have managed this is to name the cell in the first worksheet, then for each of the remaining sheets, move
the sheet to a new workbook, name the cell and then move the worksheet back into the original workbook. Slow and laborious.

Anyone know of a quicker method?

Any suggestions gratefully received

Philip






  #5   Report Post  
Posted to microsoft.public.excel.misc
Bob Phillips
 
Posts: n/a
Default same named range on multiple worksheets?

Select each sheet in turn, select the cell(s), InsertNameDefine... and add
the name of 'sheetname'!name, and Add.

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"Philip Reece-Heal" wrote in message
...
I have a acquired a workbook with many worksheets and I want to apply the
same name to the same cell on each worksheet.
To date, the only way I have managed this is to name the cell in the first
worksheet, then for each of the remaining sheets, move the sheet to a new
workbook, name the cell and then move the worksheet back into the original
workbook. Slow and laborious.

Anyone know of a quicker method?

Any suggestions gratefully received

Philip







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
xtract data range from multiple worksheets davez Excel Discussion (Misc queries) 2 August 28th 05 08:50 AM
Functions across multiple worksheets starlight Excel Worksheet Functions 0 August 10th 05 05:10 PM
Offset Function works in cell, not in named range DragonslayerApps Excel Worksheet Functions 0 July 25th 05 04:39 PM
Cannot Expand Named Range - when size of the Range exceeds Snig Excel Discussion (Misc queries) 1 July 7th 05 01:46 PM
Using a formula to create named range reference [email protected] Excel Worksheet Functions 4 June 29th 05 08:03 PM


All times are GMT +1. The time now is 05:11 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"