I'm having trouble figuring how to activate a newly added sheet in a multi-sheet workbook. The workbook has a sheet for each employee, and I have a command button on the "main" sheet which adds/renames (via inputbox) a new sheet and then sorts all the sheets in the workbook (Last name, First name). How do I activate/reference this newly created sheet for my code to format it.
Currently, if I run the format code right after the add sheet code it formats the "main" sheet not the newly added one? However, if I run them separately, the format code works with the newly added sheet.
Any help is greatly appreciated.