0

Please have a look at "VBA Early Binding" and "VBA Late Binding".
You are using Earling Binding in this line: Set oFS = New FileSystemObject
Thats why you have to enable a reference on every machine where the macro runs.
You can convert Early Binding
Dim oFS As FileSystemObject
Set oFS ...