You opened "wb" as read only with the command
Set wb = Workbooks.Open(pathinput, ReadOnly:=True)
so be careful not to save the workbook or it will crash.
Another problem is you open you file twice, with the following command :
path = "C:\Users\hi\Downloads\VBA\Employees Schedule - 2024.xlsx" Workbooks.Open path, ReadOnly:=True