Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hello,
For a year and a half I've had an Excel macro working fine. I haven't changed anything to the PC that would affect Excel, to my knowledge. I'm running Vista 32 Home Premium and Office 2007. I have the following references checked in "Tools / References": - Visual Basic for Applications - Microsoft Excel 12.0 Object Library - OLE Automation - Microsoft Office 12.0 Object Library This code runs on other PC's, but it stopped running on this (essential) one. When it encounters the first SET statement, it give the error: "Run-time error '429': ActiveX component can't create object" Sub CreateEditedSongListing() 'DECLARE VARIABLES Dim objFSO As Object Dim objFolder As Object Dim strSongs_EditedPath As String 'ASSIGN INITIAL VALUES strSongs_EditedPath = "C:\Users\Phil\Documents\Songbook On Screen\Songs-Edited" 'Use Microsoft Scripting runtime. Set objFSO = CreateObject("Scripting.FileSystemObject") Set objFolder = objFSO.GetFolder(strSongs_EditedPath) End Sub In which reference is the "Scripting.FileSystemObject" located? The code snipet runs fine on another PC, which has the same four references checked. However it stopped runing on the essential PC. Thanks for looking into this. Phil -- Programmer on Budget |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
"Scripting.FileSystemObject" suddenly stopped working | Excel Programming | |||
Scripting.FileSystemObject | Excel Programming | |||
Scripting.FileSystemObject | Excel Discussion (Misc queries) | |||
Scripting.FileSystemObject LAN | Excel Programming | |||
Scripting.FileSystemObject Networking | Excel Programming |