cainey1991
New Member
- Joined
- Feb 20, 2014
- Messages
- 31
Hi all,
I am looking for a simple function. I have managed to break it down into small chunks but not getting anywhere with it.
When the macro is run it looks at a table and increments the ID when it adds a row.
[TABLE="width: 500"]
<tbody>[TR]
[TD]ID[/TD]
[TD]name[/TD]
[/TR]
[TR]
[TD]D-1
[/TD]
[TD]Bill[/TD]
[/TR]
[TR]
[TD]D-2[/TD]
[TD]Ben[/TD]
[/TR]
</tbody>[/TABLE]
I can add the row but cant increment the ID. I am trying to break it down :
1. Look at last value in the last row and first cell - cannot work out
2. Increment this value by 1
Any help would be great.
D
I am looking for a simple function. I have managed to break it down into small chunks but not getting anywhere with it.
When the macro is run it looks at a table and increments the ID when it adds a row.
[TABLE="width: 500"]
<tbody>[TR]
[TD]ID[/TD]
[TD]name[/TD]
[/TR]
[TR]
[TD]D-1
[/TD]
[TD]Bill[/TD]
[/TR]
[TR]
[TD]D-2[/TD]
[TD]Ben[/TD]
[/TR]
</tbody>[/TABLE]
I can add the row but cant increment the ID. I am trying to break it down :
1. Look at last value in the last row and first cell - cannot work out
2. Increment this value by 1
Any help would be great.
D