Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / New Users / January 2006

Tip: Looking for answers? Try searching our database.

Unique ID Number

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
StompS - 17 Jan 2006 16:48 GMT
I would to assign a unique (sequential) ID # to a cell when that cell is
selected somehow. Once that number is selected then the next time a cell
formatted that way is selected, it gets the next number in the sequence.
Thank you.
JE McGimpsey - 17 Jan 2006 17:14 GMT
Take a look here for sequential numbers:

   http://www.mcgimpsey.com/excel/sequentialnums.html

You don't say what "cell formatted that way" means (e.g., Numberformat?
Font characteristics? Cell background?), you may be able to use a
Worksheet_SelectionChange() event:

   Private Sub Worksheet_SelectionChange( _
               ByVal Target As Excel.Range)
       With ActiveCell
           If .Interior.ColorIndex = 3 Then _
               .Value = NextSeqNumber
       End With
   End Sub

> I would to assign a unique (sequential) ID # to a cell when that cell is
> selected somehow. Once that number is selected then the next time a cell
> formatted that way is selected, it gets the next number in the sequence.
> Thank you.
StompS - 17 Jan 2006 17:36 GMT
Sorry,

What I meant was that, cells in that column, which represent a unique ID
number, and would be somehow formatted so Excel knows that those are the
cells that need this option. This is just to give a unique number to each
set of data.....

> Take a look here for sequential numbers:
>
[quoted text clipped - 16 lines]
>> formatted that way is selected, it gets the next number in the sequence.
>> Thank you.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.