473,394 Members | 1,679 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

References screwed up.

I've done an Access app that does some Word automation. The code is long but
the meat of it is:

Sub testword()
Dim wrdapp As Word.Application
Set wrdapp = New Word.Application
wrdapp.Visible = True
End Sub

Early binding, yes?

This worked. Now it's producing:

'Run-time error 48

Error loading dll'

I've tried many things:

I reset the references. I imported all the objects into a new database. I
created a completely new database with one form, one command button and the
code above. I have progressively removed Office2003 beta, Office XP, Office
2000, leaving myself with only Office 97 on the machine. Still the result
above.

This code used to work fine, now it doesn't. What I think I've done in the
meantime is move my install of Office 2002. Office 97 and 2000 were in their
own directories. But when I installed Office 2002 IIRC, it got installed as
a sub directory in the 2000 directory. So I uninstalled and re-installed in
it's own directory. My memory of the exact sequence is hazy. I may well have
re-installed the Office 2003 beta too.

A clue however is that over the last day that I've been trying to sort this
out, quite often the only Word reference that is offered is one to Word 11
(2003, yes), even after that version has been removed. I can browse to
MSWord9.obj (or whatever its called) fine and mark it as a reference. But it
doesn't work.

It appears that whatever happens and _early binding_ reference to Word
automation it trying to find the Word 11 library. And failing. I've always
been able to start the appropriate version of Word itself, by the way, so
presumably it's some dll which that calls. Infact if I open task manager
there are often several versions of winword.exe running, all the failed
attempts I guess.

I'm guessing this is a registry thing. I've search the archives, MS site
etc. Late binding works, and I know many will say that's what I should be
using. Nevertheless I'd like this to work as it is, and not be forced into
using late binding as a workaround. References to Excel work just fine,
early binding too.

Anybody got any clues?

Yours, Mike MacSween
Nov 12 '05 #1
1 2230
Hi Mike,

I agree it's probably a screw up in the Registry. Have you done Run/Regedit
and searched Word.Application? I might try that, deleting everything you
come across (after installing all versions of Office), then try a reinstall.
It appears that whatever happens and _early binding_ reference to Word
automation it trying to find the Word 11 library. And failing. I've always
been able to start the appropriate version of Word itself, by the way, so
presumably it's some dll which that calls. Infact if I open task manager
there are often several versions of winword.exe running, all the failed
attempts I guess.

I'm guessing this is a registry thing.


Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jan 24 2003)
http://www.mvps.org/word

This reply is posted in the Newsgroup; please post any follow question or
reply in the newsgroup and not by e-mail :-)

Nov 12 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Steven Wong | last post by:
hi, I've got a pthreaded app, which seg faults. Taking a look at the stack in gdb I notice the "this" pointer gets nulled in the stackframe where the seg fault occurs. Say its in an object,...
22
by: xmp333 | last post by:
Hi All, I am trying to hide my JavaScript source. The method I chose was to keep all the important source in a password protected folder, and then use a SRC="folder/script.js" to include it...
14
by: Sin | last post by:
I've tried everything and I've come to the conclusion that I'm screwed. If anyone can help, I would be eternaly greatful. I have a solution which has 47 projects.. This is includes (very roughly)...
8
by: mathilda | last post by:
I have a situation where I need to put back in a deleted record to a table whose primary key is an Autonumber. And of course the autonumber has to match what it was before. Any way of saving my...
2
by: S. van Beek | last post by:
Dear reader, For removing a reference in the VBA reference form I receive from Doug Steele the following code: ........... References.Remove refCurr
6
by: Irrwahn Grausewitz | last post by:
Hey, y'all. While doing some pointer experiments I encountered a problem. I know that I know the answer already, but trying to remember I just screwed up my mind. I wonder if someone would be...
0
by: Richard Fagen | last post by:
Hi Everyone, I've noticed several typos in the Web Matrix tutorial (I know they are unavoidable) but I'd like to point out ones that screwed my up for a while and hopefully, it will help others....
4
by: Jianwei Sun | last post by:
Hi, Not sure what happened. All of my icons in toolbox (VS 2005 IDE) are screwed up. They all look the same with some weird shape. But if I put any of them (like a button, listview ..) on the...
2
by: =?Utf-8?B?UGV0ZXJXb2xmZQ==?= | last post by:
After a clean install o a linsed W2K Prof, I discovered that my 2 other HD's (WDC 200Gb) did contain the musicfiles (all in MP3), did contain the correct names of the albums and even the correct...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.