Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 661
Default Dynamic Cell Nameing

Is there any way to dynamically name cells in order to create unique
indifiable cells. I specifically want to name cells based on joining 2
idenifiers found in a worksheet (i.e. I want cell H1 to be named EBI_130,
cell H2 to be name EBI_131, etc.)

I haven't figured a way around the (... names.add name:= ...) configuration
that is static.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Dynamic Cell Nameing

Dim s1 as String, lng2 as Long
S1 = "EBI_"
Lng2 = 129

for i = 1 to 2
Range("H1").Offset(i-1,0).Name = S1 & (Lng2 + i)
Next

--
Rgards,
Tom Ogilvy

"Paul" wrote in message
...
Is there any way to dynamically name cells in order to create unique
indifiable cells. I specifically want to name cells based on joining 2
idenifiers found in a worksheet (i.e. I want cell H1 to be named EBI_130,
cell H2 to be name EBI_131, etc.)

I haven't figured a way around the (... names.add name:= ...)

configuration
that is static.



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 661
Default Dynamic Cell Nameing

Nicely Done. Thanks

"Tom Ogilvy" wrote:

Dim s1 as String, lng2 as Long
S1 = "EBI_"
Lng2 = 129

for i = 1 to 2
Range("H1").Offset(i-1,0).Name = S1 & (Lng2 + i)
Next

--
Rgards,
Tom Ogilvy

"Paul" wrote in message
...
Is there any way to dynamically name cells in order to create unique
indifiable cells. I specifically want to name cells based on joining 2
idenifiers found in a worksheet (i.e. I want cell H1 to be named EBI_130,
cell H2 to be name EBI_131, etc.)

I haven't figured a way around the (... names.add name:= ...)

configuration
that is static.




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
nameing a worksheet Lost Excel Discussion (Misc queries) 2 April 23rd 09 08:03 AM
Nameing cells in workbook Mike Busch[_2_] Excel Discussion (Misc queries) 3 October 6th 08 10:59 PM
column nameing PAUL~H~UK Excel Discussion (Misc queries) 7 October 16th 06 11:36 PM
Nameing a range while still selected from copy Jim at Eagle Excel Programming 5 April 10th 05 07:21 PM
Programatically nameing ranges Adam Ward Excel Programming 4 May 12th 04 09:43 PM


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