LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 125
Default HOW TO: One name range to work for multiple sheets

Kevin Past this into an empty vba module
Sub RSelect()
Dim MyRange As Range
Set MyRange = ActiveSheet.Range("A1:A10")
MyRange.Select
End Sub

Then past this into the code window for each "Sheet" Object
Private Sub Worksheet_Activate()
RSelect
End Sub

Hope this helps.
Dan Thompson

"Kevin McCartney" wrote:

HI TWIMC,

Is there a way to enter one NAMED range that will work on all sheets in a
workbook? E.g. I'd like to be able to set the range A1:A10 as MyRange on
Sheet1 and I when I select Sheet2, and select MyRange, I want range A1:A10 on
Sheet2 to be selected and not A1:A10 on Sheet1.

Now I know I can select each sheet in turn and select the same range and
type in the NAME box sheetname!MyRange but it's a bit to much manual work for
a workbook with over 50 sheets and potentially the range required can change
shape per workbook, (not sheet).

Any ideas, much appreciated

TIA
KM

 
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
See/work with multiple sheets at the same time Glauco Excel Discussion (Misc queries) 2 March 14th 07 04:37 PM
how to print multiple work sheets using vba prakash Excel Discussion (Misc queries) 1 November 24th 06 06:58 AM
how to sum cells from multiple work sheets jb2006 Excel Worksheet Functions 1 November 9th 06 04:32 PM
Counting dates in multiple work sheets and work books Savage Excel Discussion (Misc queries) 0 December 19th 05 11:41 PM
Multiple Work Sheets Daniell Excel Worksheet Functions 4 January 26th 05 02:08 AM


All times are GMT +1. The time now is 08:39 AM.

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"