79214487

Date: 2024-11-22 10:09:38
Score: 1.5
Natty:
Report link

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

Reasons:
  • No code block (0.5):
  • Low reputation (1):
Posted by: Cookie Monster