Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
jduenyas
Specialist
Specialist

Script fails

Hi all

Script editor fails in the line:

set fso = CreateObject("Scripting.FileSystemObject")

Any idea what is going on?

Thanks

Josh

The error returned is:

ActiveX component can't create object: 'Scripting.FileSystemObject'

2 Replies
erichshiino
Partner - Master
Partner - Master

Hi,

On the edit module window, you need to set requested module security to 'System Access' and Current Local Security to 'Allow system Access'

Hope this helps,

Erich

jduenyas
Specialist
Specialist
Author

Thanks. I finally figuered this one out.

However, When clicking the Debug and the selected sub contains a parameter I get a message "Cannot debug function with parameters"

What is that?

(This editor is unlike any VB editor I have expreienced -- mainly Access VBA and VB Studio)

Thanks