Everything that needs a Set already has it. Anything on the left of an assignment statement that doesn't have a Set and isn't referencing a member property will need a Dim statement. Based on my review of the code the following need Dim statements
myFolderID
myFolderPath
strMsg
result
myPath
subjectArray
idx
NewPath
OldPath
foundTS
However, I don't have a system available for testing this so I don't guarantee I've listed everything.