Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Dim Appword As word.application
Hi
I am using this daclaration in a program "Dim Appword As word.application" when i run my program i get this error assigned to this "Compile error userdefined type not defined" I know i have to do something but not sure what, any help greatly received Johny |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Dim Appword As word.application
Use:
Set AppWord=CreateObject("Word.Application") OR: Add the Word object library reference to your project " wrote: Hi I am using this daclaration in a program "Dim Appword As word.application" when i run my program i get this error assigned to this "Compile error userdefined type not defined" I know i have to do something but not sure what, any help greatly received Johny |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Dim Appword As word.application
Have you created a reference to the Word type library? Go to
ToolsReferences, scroll down to Microsoft Word, and check it. -- HTH Bob Phillips wrote in message oups.com... Hi I am using this daclaration in a program "Dim Appword As word.application" when i run my program i get this error assigned to this "Compile error userdefined type not defined" I know i have to do something but not sure what, any help greatly received Johny |
#4
Posted to microsoft.public.excel.programming
|
|||
|
|||
Dim Appword As word.application
"AA2e72E" wrote in message ... Use: Set AppWord=CreateObject("Word.Application") You would also need Dim AppWord As Object |
#5
Posted to microsoft.public.excel.programming
|
|||
|
|||
Dim Appword As word.application
Where would i use the Set appWord = CreateObject("Word.Application")
syntax AA2e72E wrote: Use: Set AppWord=CreateObject("Word.Application") OR: Add the Word object library reference to your project " wrote: Hi I am using this daclaration in a program "Dim Appword As word.application" when i run my program i get this error assigned to this "Compile error userdefined type not defined" I know i have to do something but not sure what, any help greatly received Johny |
#6
Posted to microsoft.public.excel.programming
|
|||
|
|||
Dim Appword As word.application
See
http://www.erlandsendata.no/english/...baoleolebasics http://www.erlandsendata.no/english/...olecontrolword HTH. Best wishes Harald skrev i melding ups.com... Where would i use the Set appWord = CreateObject("Word.Application") syntax |
#7
Posted to microsoft.public.excel.programming
|
|||
|
|||
Dim Appword As word.application
You would do that instead of
Set AppWord = New Word.Application but note my other post. -- HTH RP (remove nothere from the email address if mailing direct) wrote in message ups.com... Where would i use the Set appWord = CreateObject("Word.Application") syntax AA2e72E wrote: Use: Set AppWord=CreateObject("Word.Application") OR: Add the Word object library reference to your project " wrote: Hi I am using this daclaration in a program "Dim Appword As word.application" when i run my program i get this error assigned to this "Compile error userdefined type not defined" I know i have to do something but not sure what, any help greatly received Johny |
#8
Posted to microsoft.public.excel.programming
|
|||
|
|||
Dim Appword As word.application
Why not spend a few minutes reading the "instructions" and save yourself
time spent struggling later: As I previously posted: Microsoft Office 2000 Automation Help File Available (Q260410) http://support.microsoft.com/default...b;EN-US;260410 Microsoft Office XP Automation Help File Available (Q302460) http://support.microsoft.com/default...b;EN-US;302460 -- Regards, Tom Ogilvy wrote in message ups.com... Where would i use the Set appWord = CreateObject("Word.Application") syntax AA2e72E wrote: Use: Set AppWord=CreateObject("Word.Application") OR: Add the Word object library reference to your project " wrote: Hi I am using this daclaration in a program "Dim Appword As word.application" when i run my program i get this error assigned to this "Compile error userdefined type not defined" I know i have to do something but not sure what, any help greatly received Johny |
#9
Posted to microsoft.public.excel.programming
|
|||
|
|||
Dim Appword As word.application
You need to set a reference to the Word object library. In VBA,
go to the Tools menu, choose References, and scroll down to Microsoft Word. Check that box. -- Cordially, Chip Pearson Microsoft MVP - Excel Pearson Software Consulting, LLC www.cpearson.com wrote in message oups.com... Hi I am using this daclaration in a program "Dim Appword As word.application" when i run my program i get this error assigned to this "Compile error userdefined type not defined" I know i have to do something but not sure what, any help greatly received Johny |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Read/write excel and word 2007 documents from another application | Excel Discussion (Misc queries) | |||
macro to close excel application other than application.quit | Excel Programming | |||
Excel Versions and defineing word.application | Excel Programming | |||
Linked Excel Chart within hidden Word Application Visible | Excel Programming | |||
Excel VBA, won't recognize "Word.Application" object | Excel Programming |