I have a workbook where I work with Excel files via VBA which involves defining a variable as an object, then setting that object as a new filesystemobject.
The code would look like this:
Of course there would be additional code after that working with the fso variable. Anyway, I've used this coding many times and the workbooks are stored on a file server share and has been working fine.
I was tasked with setting up a macro for another user in Excel and so I created a file on a separate file server share they use for their location. When I use this exact same coding I get an error message saying ActiveX can't create the object, error 429. The debugger highlights the set fso = CreateObject("Scripting.FileSystemObject") line of code.
The really odd part is that if I move that file back to my normal file server work area I'll still get that error message when trying to run the script. If I start a new file on our file server work directory and paste the code into it, then the code works just fine.
Initially I thought it was workbook related, but now I'm thinking there is some Windows wizardry going on with file and directory permissions.
From what i can tell looking at the file share permissions, my normal working directory shows me as having everything checked except for "special permissions." In the other directory my permissions appear to be everything except Full Control and Special Permissions.
Google searching has failed me so far.
Anyone have any ideas on what is causing this?
The code would look like this:
Code:
Sub Test()
Dim fso as Object
Set fso = CreateObject("Scripting.FileSystemObject")
End Sub
Of course there would be additional code after that working with the fso variable. Anyway, I've used this coding many times and the workbooks are stored on a file server share and has been working fine.
I was tasked with setting up a macro for another user in Excel and so I created a file on a separate file server share they use for their location. When I use this exact same coding I get an error message saying ActiveX can't create the object, error 429. The debugger highlights the set fso = CreateObject("Scripting.FileSystemObject") line of code.
The really odd part is that if I move that file back to my normal file server work area I'll still get that error message when trying to run the script. If I start a new file on our file server work directory and paste the code into it, then the code works just fine.
Initially I thought it was workbook related, but now I'm thinking there is some Windows wizardry going on with file and directory permissions.
From what i can tell looking at the file share permissions, my normal working directory shows me as having everything checked except for "special permissions." In the other directory my permissions appear to be everything except Full Control and Special Permissions.
Google searching has failed me so far.
Anyone have any ideas on what is causing this?