KestutisTower
New Member
- Joined
- Jun 2, 2022
- Messages
- 23
- Office Version
- 2016
- Platform
- Windows
Hello everyone. I'm looking for a vba code to fill column "C" with row address when data is entered in column "A". And when I delete a row , they would change accordingly. Data is entered automatically via userform.
Before row deleted:
After :
Before row deleted:
Book1 | |||||
---|---|---|---|---|---|
A | B | C | |||
1 | name | product | row number | ||
2 | John | apple | 2 | ||
3 | Linda | plum | 3 | ||
4 | Peter | apple | 4 | ||
Sheet1 |
After :
Book1 | |||||
---|---|---|---|---|---|
A | B | C | |||
1 | name | product | row number | ||
2 | John | apple | 2 | ||
3 | Peter | apple | 3 | ||
Sheet1 |