![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
New Member
Join Date: Mar 2002
Location: England
Posts: 46
|
Is it possible to, when a row is added to a table, automatically generate the next number in the sequence. For example i have a list of members. In column A i have 'Member ID'. I want the first member to be added to have the member number 1. Then the next member to have the number 2.
The row will be added onto the table using a macro to add it to the bottom. |
|
|
|
|
|
#2 |
|
MrExcel MVP
Join Date: Feb 2002
Location: Austin, Texas USA
Posts: 11,654
|
Have you considered using Excel's built-in data form. It also adds to the bottom of a list and propagates formulas. So your member number could be generated using a formula such as, =ROW()-ROW($A$1), where your 1st data row is 2:2.
|
|
|
|
|
|
#3 |
|
New Member
Join Date: Mar 2002
Location: England
Posts: 46
|
thanks. i completely forgot about the data-form
|
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|