Insert row based on sort

ShoYnn

Board Regular
Joined
Mar 20, 2019
Messages
60
Office Version
  1. 2016
Platform
  1. Windows
I am creating a sheet that will add a new team member and assign certain job taskings. Column AD has a numerical value in it that is based off of certain aspects of the new member (job title, department, etc), and I currently have the list sorted based off of that column from lowest number to highest. I have created a userform that makes generating the info for the new member streamlined, and I have a variable in the coding that is going to be that new member's value in column AD. I am looking for the vba that will find the last instance of that value in the list and insert a row just below it, or insert a row at the appropriate spot in the list to keep the numbers sorted from lowest to highest (both those are the same thing, just worded different to help with clarification and possibly simplicity in the code). Any help would be greatly appreciated!

P.s. I am working on a government computer, so I am posting this thread on my cellphone. I will not be able to upload a copy of my sheet, and if any of my code is needed it will be as decent of a picture as my phone can take of a monitor
 

Excel Facts

Best way to learn Power Query?
Read M is for (Data) Monkey book by Ken Puls and Miguel Escobar. It is the complete guide to Power Query.

Forum statistics

Threads
1,225,416
Messages
6,184,859
Members
453,264
Latest member
AdriLand

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