Hi all.

I am trying to display "Text5" from "Tasks" in a VBA macro with no success...

Sub Macro2()
Dim strLegenda As String

strLegenda = pjCustomProjectEnterpriseText5 & " days"
FilePageSetupHeader Alignment:=pjRight, Text:="Duration: " & strLegenda
End Sub


"Text5" uses a formula and I can get it in any table but I can't print it...
Please, help!