I'm new to VBA and I'm stuck.. I have a table with workers and the amount of time they have been working. I want to insert all the workers into an array with the total time they have been working and then print out them into another sheet.

The problem is that I don't know if it's even possible to insert these values together into an array.. Right now I have hard-coded the names into my code and use If-statements to add hours to the right name but that will be a problem if I add more workers to the table (because then I need to add those names into the code too). I don't want the code to know the names or how many workers there are before it runs.
I want the print-out to be like:
Steve | 13
Emma | 2
Andy | 3
Jeff | 12
Appreciate any help!

