LAbluesman
Programmer
here's the deal :
we're developing a Visual Basic 6.0 application that uses MS Word 2000 and Excel 2000 in the background. This is not the problem. the application was working just fine about a week ago (microsoft app working just fine???, oh my god!!!). a week ago we saved everything from the machine, formatted everything, and reinstalled Win2000 (we had win2000 on before the format/install). This is just part of our annual "clean up all the junk that's probably accumilated over the year in windows".
now, the problem is this: now whenever I run the application, and the appl. creates an instance of Word, it craps out. we get the following error message:
Run-time error '429': ActiveX component can't create object.
to note, we have Visual Studio 6.0 with the MSDN Library and ServicePac 5 installed. also, MS Office with SR1 and SP2 installed.
below is the code where the crash occurs:
'----------------------------------------------------------------------------------------------------------
Option Explicit
Dim appWord As Word.Application 'instance of MSWord object.
Dim appExcel As Excel.Application 'instance of MSExcel object.
...
Private Sub MDIForm_Load()
Set appWord = CreateObject("Word.Application"
<-------ERROR OCCURS HERE!!!!!!!!!!!!!!!
appWord.WindowState = wdWindowStateMinimize 'Window comes up minimized.
appWord.ScreenUpdating = False 'User won't see work being done.
appWord.Visible = False 'Window can't seen by user.
Set appExcel = CreateObject("Excel.Application"
appExcel.WindowState = xlMinimized
appExcel.ScreenUpdating = False
appExcel.Visible = False
frm_brcsMaster.Visible = True
Load frm_login
End Sub
'----------------------------------------------------------------------------------------------------------
any suggestions would be appreciated, as this unholy thing is really starting to chap my @$$.
thanks.
we're developing a Visual Basic 6.0 application that uses MS Word 2000 and Excel 2000 in the background. This is not the problem. the application was working just fine about a week ago (microsoft app working just fine???, oh my god!!!). a week ago we saved everything from the machine, formatted everything, and reinstalled Win2000 (we had win2000 on before the format/install). This is just part of our annual "clean up all the junk that's probably accumilated over the year in windows".
now, the problem is this: now whenever I run the application, and the appl. creates an instance of Word, it craps out. we get the following error message:
Run-time error '429': ActiveX component can't create object.
to note, we have Visual Studio 6.0 with the MSDN Library and ServicePac 5 installed. also, MS Office with SR1 and SP2 installed.
below is the code where the crash occurs:
'----------------------------------------------------------------------------------------------------------
Option Explicit
Dim appWord As Word.Application 'instance of MSWord object.
Dim appExcel As Excel.Application 'instance of MSExcel object.
...
Private Sub MDIForm_Load()
Set appWord = CreateObject("Word.Application"
appWord.WindowState = wdWindowStateMinimize 'Window comes up minimized.
appWord.ScreenUpdating = False 'User won't see work being done.
appWord.Visible = False 'Window can't seen by user.
Set appExcel = CreateObject("Excel.Application"
appExcel.WindowState = xlMinimized
appExcel.ScreenUpdating = False
appExcel.Visible = False
frm_brcsMaster.Visible = True
Load frm_login
End Sub
'----------------------------------------------------------------------------------------------------------
any suggestions would be appreciated, as this unholy thing is really starting to chap my @$$.
thanks.