LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Same Range on different worksheets


Ron de Bruin Wrote:
Try this

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


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


"sgrech" wrote in
message
...

Fountainhead Wrote:
Have you thought about making each range a public variable?


Code:
--------------------
Public r1 As Range, r2 As Range
Set r1 = Range("A1:B2")
Set r2 = Range("C3:D4")

--------------------


Now you can use r1 for the first sheet, r2 for the second sheet, ad
infinitum.


This really won't work for me, I really need to have the same name

for
the range on each worksheet. As said previously I know i can

achieve
this by making copies of the original worksheet but this in itself

will
cause me additional set-up work.

Any other ideas from anyone.

Simon


--
sgrech

------------------------------------------------------------------------
sgrech's Profile:

http://www.excelforum.com/member.php...o&userid=14501
View this thread:

http://www.excelforum.com/showthread...hreadid=526300



Sorry Ron,
But this also won't work for me. I have worksheets within the workbook
which I don't wont this range to applied to. Much more importantly
though the range is not exactly the same cells on each worksheet so I
don't think I can apply the range via a macro.
Simon


--
sgrech
------------------------------------------------------------------------
sgrech's Profile: http://www.excelforum.com/member.php...o&userid=14501
View this thread: http://www.excelforum.com/showthread...hreadid=526300



 
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
same range names in different worksheets tabell88 Excel Worksheet Functions 4 March 3rd 09 02:47 AM
Range of Worksheets Sum JRM Excel Worksheet Functions 7 October 9th 05 10:14 PM
Macro with Range of Worksheets Chris E. New Users to Excel 8 December 3rd 04 04:56 PM
SUMIF across a range of worksheets Mike@Q Excel Worksheet Functions 3 November 24th 04 02:36 PM
VBA help - worksheets and range questions Bob[_54_] Excel Programming 4 May 4th 04 02:29 AM


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