R
Rose B
I have developed some code in a 'test' database to open a Word document and
go through all of the bookmarks to extract data. In the 'test' database it
compiles and works fine, but when I have copied the code onto the application
where I want to incorporate it I get a compile error of Variable not Defined.
The error highlights "FormField" in the line of code below. I have checked
the References and everything is the same in both databases - anyone got any
ideas of why this would be happening?
For Each FormField In myWordDoc.Bookmarks
go through all of the bookmarks to extract data. In the 'test' database it
compiles and works fine, but when I have copied the code onto the application
where I want to incorporate it I get a compile error of Variable not Defined.
The error highlights "FormField" in the line of code below. I have checked
the References and everything is the same in both databases - anyone got any
ideas of why this would be happening?
For Each FormField In myWordDoc.Bookmarks