H Haynesey Registered User. Local time Today, 21:22 Joined Dec 19, 2001 Messages 190 Sep 9, 2002 #1 Hi, When I try and run this code, VB will not let me as a message appears saying, "User-defined type not defined". Any ideas why not? Dim objWord As Word.Document Thanks in advance. Lee
Hi, When I try and run this code, VB will not let me as a message appears saying, "User-defined type not defined". Any ideas why not? Dim objWord As Word.Document Thanks in advance. Lee
C charityg Registered User. Local time Today, 21:22 Joined Apr 17, 2001 Messages 634 Sep 9, 2002 #2 Did you check the references to make sure you have referenced the Word Object Library?
H Haynesey Registered User. Local time Today, 21:22 Joined Dec 19, 2001 Messages 190 Sep 10, 2002 #3 Thanks for your help. How do you check the references? Many thanks in advance Lee
C charityg Registered User. Local time Today, 21:22 Joined Apr 17, 2001 Messages 634 Sep 10, 2002 #4 Open the module, and select tools, then references. Scroll down to the Word Object library and place a check box beside it.
Open the module, and select tools, then references. Scroll down to the Word Object library and place a check box beside it.