If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
Dim objWord As Word.Application
Hi
I got an error on this line: Dim objWord As Word.Application Compile Error: User-type not defined. Can anyone shed any light on this? Stapes |
#2
|
|||
|
|||
Dim objWord As Word.Application
hi Stapes,
Stapes wrote: I got an error on this line: Dim objWord As Word.Application Compile Error: User-type not defined. This kind of declaration is called early binding. The compiler/linker - VBA - must know that type. You have to add a reference in the VBA IDE under Tools/References to a Microsoft Word library. See http://word.mvps.org/FAQs/InterDev/E...ateBinding.htm mfG -- stefan -- |
Thread Tools | |
Display Modes | |
|
|