Automation Error

A

Aref

I am getting the error message: "Run-Time error '48'
Error in loading DLL" whenever I try to Set a new
Word.Application object:

dim w as word.application
set w = new word.application

Removing and re-installing office did not help.
Any ideas where to look?
 
B

Bob G

Code might vary slightly depending on your applications.

Office 2003/VB.NET

Public oWord As Microsoft.Office.Interop.Word.Application
oWord = CreateObject("Word.Application", )

Office XP

Public oWord As PowerPoint.ApplicationClass
oWord = CreateObject("Word.Application")

Good luck on your project!
 
B

Bob G

Sorry for the typo!

Code might vary slightly depending on your applications.

Office 2003/VB.NET

Public oWord As Microsoft.Office.Interop.Word.Application
oWord = CreateObject("Word.Application", )

Office XP

Public oWord As Word.ApplicationClass
oWord = CreateObject("Word.Application")

Good luck on your project!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top