Have some code that should determine users My Documents path, Create a New Folder in their documents, then save a newly created PDF document in that folder.
It runs fine on my system. When other users try to run it, they are getting:
Run-time error '1004':
Document not saved. The document may be open, or an error may have been encountered when saving. When Debug is clicked, it points to the code that simply saves the file in the prescribed path as a pdf. As indicated, it works fine on my system but causes this issue for other users.
Here is an image of the code and the portion that is highlighted on debug. I think it may have something to do with the interaction of the Function but I'm baffled.
Any assistance is greatly appreciated.
It runs fine on my system. When other users try to run it, they are getting:
Run-time error '1004':
Document not saved. The document may be open, or an error may have been encountered when saving. When Debug is clicked, it points to the code that simply saves the file in the prescribed path as a pdf. As indicated, it works fine on my system but causes this issue for other users.
Here is an image of the code and the portion that is highlighted on debug. I think it may have something to do with the interaction of the Function but I'm baffled.
Any assistance is greatly appreciated.