LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #8   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default RangeName blocks of data

I guess because I didn't feel that address is all that is necessary.

--
Regards,
Tom Ogilvy


"GS" wrote in message
...
Hi Tom,

Prior to my original post, there were no others. There seems to be a time
delay for updating the forum. (I think we've seen this before) Had I seen
your post, I wouldn't have bothered as it's good "as is".<FWIW

The switch to using local names was an afterthought in case there were

other
sheets in the wbk that could possibly end up replacing global name

references.


(If I may...) -question regarding your interesting alternative to making

the
local names; why the (-1, -1, xlA1, True) when .Address is all that's
necessary? <-Just curious!<g

Regards,
Garry


"Tom Ogilvy" wrote:

You can also make a local name (sheet level) with

Activesheet.Names.Add Name:=CurrentBlock.Value, _
Refersto:="=" & RangeToName.Address(-1,-1,xlA1,True)

for Workbook Level

ActiveWorkbook.Names.Add Name:=CurrentBlock.Value, _
Refersto:="=" & RangeToName.Address(-1,-1,xlA1,True)

--
Regards,
Tom Ogilvy


"GS" wrote in message
...
To assign a local name (sheet level), replace this line:

RangeToName.Name = CurrentBlock.Value

with this one:

RangeToName.Name = "'" & ActiveSheet.Name & "'!" &

CurrentBlock.Value


Regards,
GS






 
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
Sort blocks of data bushwood Excel Discussion (Misc queries) 1 April 16th 10 12:57 PM
Count Blocks of Data Brendan Excel Worksheet Functions 4 January 16th 08 10:08 PM
blocks of data repeating eween New Users to Excel 4 March 29th 07 06:58 PM
averaging particular blocks of data robert111 Excel Discussion (Misc queries) 6 July 12th 06 02:41 PM
Copy Blocks Of Data SenojNW Excel Discussion (Misc queries) 2 August 9th 05 02:06 AM


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