Compile error : method or data member not found

S

spnz

Hi there,

I am in the process of updating some word templates from 2000 into 2007.

I have the following piece of code that is causing a slight headache!

Code:
Private Sub LoadReferences()
Dim RefArray()
Dim oReference As clsDOCSPerson
Dim iRow As Integer

'Build the list of people in a multi-array
Set oReferences = DOCS.GetPeopleList
''''''''''Here when it trys to set oReferences it gets an error.....


If oReferences Is Nothing Then
Exit Sub
End If

For Each oReference In oReferences.Items
cboxPartner.AddItem oReference.FullName
cboxAuthor1.AddItem oReference.FullName
cboxAuthor2.AddItem oReference.FullName
Next oReference
' WN 21/11/2002 - object clean up
Set oReference = Nothing
End Sub


I have checked the docs module and there is no GetPeopleList setup there as
a Public const.....

If tho in 2000 I type DOCS and then the . I am presented with .GetPeopleList


What am I doing wrong that is not allowing me to see .GetPeopleList?? as
this is not setup on 2000 either in the .DOCS module.


Any help would be really really helpful!!


Thank you
 
C

Cindy M.

Hi =?Utf-8?B?c3Bueg==?=,

The "DOCS" you reference is not part of Word - not in any version. This has to
be something added to your 2000 configuration. Possibly another template,
loaded as an Addin, or a COM Addin.

You'd need to make sure that, whatever it is, is copied to the Word 2007
installation AND that your template has a valid Reference to it
(Tools/References - right now you'll probably find a "MISSING" next to
whatever it is.)
I am in the process of updating some word templates from 2000 into 2007.

I have the following piece of code that is causing a slight headache!

Code:
Private Sub LoadReferences()
Dim RefArray()
Dim oReference As clsDOCSPerson
Dim iRow As Integer

'Build the list of people in a multi-array
Set oReferences = DOCS.GetPeopleList
''''''''''Here when it trys to set oReferences it gets an error.....


If oReferences Is Nothing Then
Exit Sub
End If

For Each oReference In oReferences.Items
cboxPartner.AddItem oReference.FullName
cboxAuthor1.AddItem oReference.FullName
cboxAuthor2.AddItem oReference.FullName
Next oReference
' WN 21/11/2002 - object clean up
Set oReference = Nothing
End Sub

I have checked the docs module and there is no GetPeopleList setup there as
a Public const.....

If tho in 2000 I type DOCS and then the . I am presented with .GetPeopleList

What am I doing wrong that is not allowing me to see .GetPeopleList?? as
this is not setup on 2000 either in the .DOCS module.

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 17 2005)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or
reply in the newsgroup and not by e-mail :)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top