I'm getting Run-time error 5: invalid procedure call or argument error and this line is highlighted:
in the sub procedure called isFolderExcludedi = Application.WorksheetFunction.Match(UCase(p.Name), aryFoldersToExclude, 0)
I'm getting Run-time error 5: invalid procedure call or argument error and this line is highlighted:
in the sub procedure called isFolderExcludedi = Application.WorksheetFunction.Match(UCase(p.Name), aryFoldersToExclude, 0)