I am attaching a worksheet I inherited that contains a list of employee names (fake). I deleted about 2700 rows of data to make the worksheet small enough to share. Anyway, HR says the macros in the worksheet don’t work, and they want me to fix them. First, I really don’t know how to read code well enough to fix it. But, also, when I looked at what they are trying to do, it just seems very cumberson.
They want to generate a new 4 digit employee number for every new employee when they are hired. The problem is that they used to assign these numbers manually, so there are holes in the number sequence. They want the macro to look through the list of existing numbers and generate a new number that isn’t already being used. Then, they want the list to sort alphabetically by the employee’s last name after the number is assigned (I don’t know how critical that step is, but they asked if I can do it – hence I am asking you).
Would you mind taking a look at what the spreadsheet I attached. I left their instructions on it, just as I received it, so you will know what they think they are working with now.
Thank you!!