Error in Loading DLL in Visual Basic program w/ MS Word macros
Posted on 2004-03-31
I'm usually good at figuring these things out, but I am stuck. I just got a new laptop that has XP Pro and everything is a little different. I ran a program that worked fine on my old desktop computer, but seems to be missing a DLL now.
It's a VB6 program that takes data from a database and formats it to paste into Word (I have Office 2000). The error is on the line where I first use my word document, after I initialize the word.application. Here's a segment of the code:
'open up a new word document
Dim Projects As New Word.Application
.WindowState = wdWindowStateNormal
.Documents.Add "Normal.dot", , , True
.Visible = True
When I run I get an error that says Run-time error 48: Error in loading DLL. On debug, it highlights the "With Projects" line.
So I'm assuming it has to do with old references not working in XP, but I don't know how to find out which DLL is causing the problem or what I need to do to fix it.