A Microsoft Office (Excel, Word) forum. OfficeFrustration

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.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Database Design
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Dim objWord As Word.Application



 
 
Thread Tools Display Modes
  #1  
Old June 20th, 2007, 03:22 PM posted to microsoft.public.access.tablesdbdesign
Stapes
external usenet poster
 
Posts: 321
Default 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  
Old June 20th, 2007, 03:42 PM posted to microsoft.public.access.tablesdbdesign
Stefan Hoffmann
external usenet poster
 
Posts: 709
Default 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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 04:02 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.