I had the destination folder in mind but can see how it could be an issue both ways. Have never done this so likely won't be of much help. One thing I might do is step through the code and in the immediate window test for any known properties for oStream object (perhaps when you reach .Write line). However I have no idea what property to suggest. Can say though that when testing like this I often type my reference (preceded by question mark of course) and use .Name even if I know the name. If I raise an error, there is something wrong with the reference (e.g. the object may not exist, be loaded or I just plain have the reference wrong).
The more we hear silence, the more we begin to think about our value in this universe.
Paraphrase of Professor Brian Cox.