Just to add...
Chip Pearson has one for excel (I don't know if it works in different office
applications, though).
http://www.cpearson.com/excel/download.htm
Look for XLConst
I just looked at Chip's. It looks only at XL. Using mine you select the app
and version and it returns the constants... Mine needs a little more work as
it can return duplicates but the jist of it is there...

Signature
HTH...
Jim Thomlinson
> Just to add...
>
[quoted text clipped - 48 lines]
> > >
> > > Dave Peterson
JJ - 22 Sep 2007 07:26 GMT
Thank you all for all of your responses! I already created a list of
the MS Project constants on a separate, hidden worksheet. However, I
may just declare all of the constants as my own to ensure they are
available at all times. It's just going to be extremely tedious
because the constants represent individual fields for Task and
Resource data. Therefore, there is going to be hundreds of constants
that I am going to have to declare. If anyone can think of any easier
way around this, please let me know. Thanks again!
On Sep 21, 9:48 am, Jim Thomlinson <James_Thomlin...@owfg-Re-Move-
This-.com> wrote:
> I just looked at Chip's. It looks only at XL. Using mine you select the app
> and version and it returns the constants... Mine needs a little more work as
[quoted text clipped - 60 lines]
>
> > Dave Peterson
Peter T - 23 Sep 2007 11:45 GMT
Hi Jim,
Earlier you said yours required a VB6 dll, what might that be and why not
something like this in VBA
Sub testTLI()
' Tools > References
' scroll down and check "TypeLibInformation"
' if not found Browse to TLBINFO32.DLL
Dim sPath As String
Dim sLib As String
Dim sFile As String
Dim i As Long
Dim tli As TypeLibInfo
Dim ci As ConstantInfo
Dim mbr As MemberInfo
'change to appropriate Office path
sPath = "C:\Program Files\Microsoft Office2K\Office\"
sLib = "Msword9.olb" 'Word 2000 library
' sLib = "Excel9.olb" 'XL2K
Set tli = TypeLibInfoFromFile(sPath & sLib)
For Each ci In tli.Constants
For Each mbr In ci.Members
i = i + 1
Cells(i, 1) = mbr.Name
Cells(i, 2) = mbr.Value
Next mbr
Next ci
End Sub
Regards,
Peter T
> I just looked at Chip's. It looks only at XL. Using mine you select the app
> and version and it returns the constants... Mine needs a little more work as
[quoted text clipped - 60 lines]
> >
> > Dave Peterson
Jim Thomlinson - 24 Sep 2007 16:54 GMT
That is the reference that you need (TLBINFO32.DLL). If I am correct that is
not a standard DLL that everyone is going to have. I do know that it comes
with VB6 (as per this article http://support.microsoft.com/kb/239930). My
code is basically the same as that except that I have listed all of the paths
and file nems for the standard office applications to make it easier.

Signature
HTH...
Jim Thomlinson
> Hi Jim,
>
[quoted text clipped - 108 lines]
> > >
> > > Dave Peterson
Peter T - 24 Sep 2007 17:35 GMT
Ah, afraid I wrongly assumed everyone had it!
Not sure how I got mine, with VB6 perhaps but I think I've had it for ever.
> > > I just looked at Chip's. It looks only at XL.
I've just had a quick look too. I think merely need to change -
'ThisWorkbook.VBProject.References("EXCEL").FullPath'
to the path of the *.olb in question
eg, as in quick demo I posted, mine for Word2K was
"C:\Program Files\Microsoft Office2K\Office\Msword9.olb"
Regards,
Peter T
> That is the reference that you need (TLBINFO32.DLL). If I am correct that is
> not a standard DLL that everyone is going to have. I do know that it comes
[quoted text clipped - 114 lines]
> > > >
> > > > Dave Peterson