Method FieldNameToFieldConstant don`t work with PWA

P

Pedro Povoleri

Hey there! I'm was try implement this method in my VBA script to make a PowerPoint file, is all working fine Offline but wen I'm try get it to work with my PWA is not work the method returns error 1004 any one can help-me?

The method implemented in the VBA.

Function RetornaValorCampo(NomeCampo As String)
Dim Campo
Campo = FieldNameToFieldConstant("NomeCampo", pjTask)
RetornaValorCampo = ActiveProject.ProjectSummaryTask.GetField(Campo)
End Function
 
Top