
Not applicable
2009-11-07
05:42 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Error: ActiveX component can't create object: 'Scripting.FileSystemObject'
Hi,
I got this VBScript problem in the macro of writing a file. It stoped at the first line: Set oFS = CreateObject("Scripting.FileSystemObject")
The tricky thing is it ran successfully yesterday to create a text file. 😞
********************************************************
Set oFS = CreateObject("Scripting.FileSystemObject")
Const strXmlFile = "Documents.xml"
Const myInfo = "XML_Variables.txt"
Set objXMLFile = oFS.OpenTextFile(strXmlFile, 2, True, 0)
objXMLFile.WriteLine "This is a text file."
Many thanks.
Peter
1,102 Views
1 Reply

Not applicable
2009-11-10
08:40 AM
Author
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Have you checked your macro module security, it should be allow system access
424 Views
