Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Creating cell names from cell contents en masse

I'm attempting to apply unique cell names for 30,000 individual cells.
The cell names are easily propogated in cells, but I'm stuck on how to
efficiently transfer this info to the cell names. I've searched the
archives but haven't had any luck finding a shortcut! Help!
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Creating cell names from cell contents en masse


John;346074 Wrote:
I'm attempting to apply unique cell names for 30,000 individual cells.
The cell names are easily propogated in cells, but I'm stuck on how to
efficiently transfer this info to the cell names. I've searched the
archives but haven't had any luck finding a shortcut! Help!If you really want to name 30,000 cells and heaven knows why you would!

you can use this code, this assumes the cells all have entries that will
be their individual name and that there aren't any duplicates:

Code:
--------------------
Sub NameCells()
Dim cell As Range
For Each cell In Range("A1:A100")
cell.Name = cell.Value
Next cell
End With
End Sub
--------------------


--
Simon Lloyd

Regards,
Simon Lloyd
'The Code Cage' (http://www.thecodecage.com)
------------------------------------------------------------------------
Simon Lloyd's Profile: http://www.thecodecage.com/forumz/member.php?userid=1
View this thread: http://www.thecodecage.com/forumz/sh...ad.php?t=96824

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
Creating .txt files based on cell contents Matt Bennette[_2_] Excel Discussion (Misc queries) 4 January 5th 09 04:17 PM
'IF' Macro to insert cell contents to alternate cell if cell not e Gryndar Excel Worksheet Functions 6 December 20th 08 05:02 PM
Return cell address of a cell based on contents of cell. Danny Excel Worksheet Functions 4 November 15th 08 03:11 AM
Returning Cell Contents of One Cell Based On Another Cell DallasLDY Excel Worksheet Functions 5 January 31st 07 11:00 PM
Using cell contents to reference worksheet names timsantiago Excel Discussion (Misc queries) 5 November 8th 05 09:40 PM


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

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"