customized column proprieties

H

Hernandezz

Hi,

Do you know how in VBA I define customized column proprieties? For
exemple I can obtain the customized colmun values,
activeproject.projectsummarytask.Number1

but I want for example
activeproject.projectsummarytask.Number1."title", it is possible??

thanks and good work
 
R

Rod Gill

Hi,

This group is closing soon, so please use the programming group in future.
To answer your question, try:

Sub test()
Dim TblFld As TableField
For Each TblFld In ActiveProject.TaskTables("Entry").TableFields
If TblFld.Title = "" Then
Debug.Print Application.FieldConstantToFieldName(TblFld.Field)
Else
Debug.Print TblFld.Title
End If
Next
End Sub

This will print all field names or titles (if a column has one) for the
Entry table.

--

Rod Gill
Microsoft MVP for Project

Author of the only book on Project VBA, see:
http://www.projectvbabook.com
 
H

Hernandezz

Hi,

This group is closing soon, so please use the programming group in future..
To answer your question, try:

Sub test()
Dim TblFld As TableField
    For Each TblFld In ActiveProject.TaskTables("Entry").TableFields
        If TblFld.Title = "" Then
            Debug.Print Application.FieldConstantToFieldName(TblFld.Field)
        Else
            Debug.Print TblFld.Title
        End If
    Next
End Sub

This will print all field names or titles (if a column has one) for the
Entry table.

--

Rod Gill
Microsoft MVP for Project

Author of the only book on Project VBA, see:http://www.projectvbabook.com









- Mostrar texto citado -

OK Rod, thanks for all.
 

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