Renumbering Row based on answer in txtbx in VBA

kmowers07

New Member
Joined
Jun 7, 2022
Messages
9
Office Version
  1. 365
Platform
  1. Windows
I have a user form that i enter data into that puts that data on the last row of the table.
it looks at the previous row that has the PL Name and provides the last used IT Unique Number that corresponds with it.
So example Row 40 PL Name "Jane" has IT Unique Number of 40. The new record PL Name "Jane" at the bottom of the table will have a IT Unique Number of 41. Going back up into the table i need to renumber every row after the previous record to be 42,43,44 and so on. I have read about the ROW function but i am confused with it.
I will not know the number that will it will start with because it will be based on the newITUniqueNumber
 

Excel Facts

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.
I have a user form that i enter data into that puts that data on the last row of the table.
it looks at the previous row that has the PL Name and provides the last used IT Unique Number that corresponds with it.
So example Row 40 PL Name "Jane" has IT Unique Number of 40. The new record PL Name "Jane" at the bottom of the table will have a IT Unique Number of 41. Going back up into the table i need to renumber every row after the previous record to be 42,43,44 and so on. I have read about the ROW function but i am confused with it.
I will not know the number that will it will start with because it will be based on the newITUniqueNumber
Book1
AB
1IT UniquePL Name
236Jane
337Jane
438Jane
539Jane
640Jane
741Doe
842Doe
943Doe
1044Doe
1145Doe
1246Doe
1341Jane
Sheet1
 
Upvote 0

Forum statistics

Threads
1,214,858
Messages
6,121,960
Members
449,057
Latest member
FreeCricketId

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top