PDA

View Full Version : Word.application????



grohm
05-22-2007, 03:31 AM
Hi all.

It seems my office (2007) does not like the word object....

If i put the following code in VBA:
Dim wrdApp As Word.Application

it says:
"User defined type not defined".

But even in the excel help it says that word.application object is valable. if i search the "choice - (a list of all possible commands which comes up automatically)" you get after typing Dim wrdApp as xxxx, there is no Word.Application-command either....do i have to manually active this or something?? :(

Greetings,

Ben

Bob Phillips
05-22-2007, 03:33 AM
That is because you also need to set a reference to the Microsoft Word library in Tools>References.

grohm
05-22-2007, 03:35 AM
That is because you also need to set a reference to the Microsoft Word library in Tools>References.

ok, that sounds logic :-) do you know office 2007? i just installed it and have some problems finding things....

Bob Phillips
05-22-2007, 03:40 AM
Yeah, I do.

grohm
05-22-2007, 03:43 AM
Yeah, I do.


ok, so do you know where to set that maybe? :*)

Bob Phillips
05-22-2007, 03:46 AM
Set what? I can't read your mind.

grohm
05-22-2007, 03:49 AM
Set what? I can't read your mind.

sorry for beeing that unclear. I just don't know where to set reference to the MS Word library as described above. I dont even have a "tools" tab....:-(

Bob Phillips
05-22-2007, 04:01 AM
That is the same as it always was, not 2007 specific. In the VBIDE, goto Tools>References.

grohm
05-22-2007, 04:07 AM
That is the same as it always was, not 2007 specific. In the VBIDE, goto Tools>References.


got it!! sure, i had to look i the VB environment. stupid me :-)

thanks a lot!!