Thread: Type Mismatch
View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Dave Peterson Dave Peterson is offline
external usenet poster
 
Posts: 35,218
Default Type Mismatch

How did you declare appWD?

Did you use:
dim appWd as Word.application

or if you unchecked that reference (you may have to modify other portions of
your code):

dim appWD as Object



Orion Cochrane wrote:

I had a 60-day Office Home & Student 2007 installed on my laptop, and I
installed Office Standard 2003. Running 2 versions of Office gave me problems
when I clicked on an Office 2007 program (any file I opened started in 07,
not 03). So I uninstalled the Trial version, and am now running on 03. I have
an application that generates a report in Word, and now it gives me as Type
Mismatch error on the following line:

Set appWD = CreateObject ("Word.Application")

It worked prior to uninstalling Office 2007. I have a reference to the Word
11.0 Object Model, so what's the problem?
--
I am running on Office 2003, unless otherwise stated.


--

Dave Peterson