We help IT Professionals succeed at work.

Project wont compile.

seamus9909
seamus9909 asked
on
when trying to comile my project on my XP box,.  


 Dim WordApp As Word.Application
   Dim WordDoc As Word.Document
   Dim strLetter As String
   Dim strConnect As String

I recieve an error  "User Defined Type Not Defined"

The DB was created on Windows 7 and I am trying to now run the DB on an XP box
Comment
Watch Question

SILVER EXPERT
Most Valuable Expert 2015
Distinguished Expert 2018
Commented:
Goto Tools, References in the VBA windows.
You probably refer to a newer version of Word than that installed on the XP.

/gustav
SILVER EXPERT
Most Valuable Expert 2012
Top Expert 2013
Commented:
Check references in the vba editor.

Tools-->references

Uncheck any that are Missing and select the correct version from the list.

Explore More ContentExplore courses, solutions, and other research materials related to this topic.