LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 87
Default ActiveX component can't create object or return reference to thisobject (Error 429)

Hi,

I'm trying to create a file system object so I can cycle through a
folder and quickly append 30 different text files into one. This is
the short macro I have. When I try to run it, it tells me the
following:

ActiveX component can't create object or return reference to this
object (Error 429)



Sub Gather()
Dim ObjFso As New FileSystemObject
Dim ObjectFolder As Object
Dim ColFiles As Object
Dim ObjFile As Object
Dim T As Integer
Dim MyFile As String
Dim FileNum As Integer
Dim Filenum1 As Integer

FileNum = FreeFile
Filenum1 = FreeFile

MyFile = "Q:\DropBox\csv Files\Appended Data.TXT"


Set ObjFso = CreateObject("Sripting.FileSystemObject")
Set objfolder = ObjFso.getfolder("Q:\DropBox\csv Files")
Set ColFiles = objfolder.Files

Open MyFile For Append As #FileNum


For Each ObjFile In ColFiles
Open ObjFile For Input As #Filenum1
Do Until EOF(Filenum1)
Line Input #Filenum1, Data
Print #FileNum, Data
Close #Filenum1
Loop
Next



End Sub



I have run this same type of procedure before. I can't figure out why
it's giving me this error now. Any help would be appreciated.
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Error 429 ActiveX Component can't create object Mike Hartsough Excel Programming 2 September 26th 06 03:00 PM
intermittent error - ActiveX component can't create object Naveen Excel Programming 1 December 30th 04 05:11 PM
error 429: ActiveX component can't create object GerryM Excel Programming 0 October 13th 04 05:53 PM
Runtime error '429': ActiveX component can't create object. HELP!! brazilnut Excel Programming 2 January 30th 04 10:47 PM
activex component can't create object with SAP 6.20 Mark Bigelow Excel Programming 0 July 22nd 03 06:24 PM


All times are GMT +1. The time now is 10:07 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"