Code:
folder_path = "c:\program files\MWT\9f7bfg.txt"
[COLOR=red]
fs = CreateObject("Scripting.FileSystemObject")
[/color]
If Not fs.folderexists(folderpath) Then
fs.createfolder folder_path
End If
I am getting the 438 error on the createObject line
I am guessing that perhaps I have a reference library missing?
currently I have set
Visual Basic for Applications
Microsoft Access 12.0 Object Library
OLE Automation
Microsoft Office 12.0 Access database engine object library
Microsoft Activex data objects 2.5 library
Microsoft scripting runtime
However, I could also be wrong on all counts!
Can anyone help me resolve this please ...