Using PI-SDk call .Summaries2 in Processbook via VBA

Discussion created by Kenneth.Rice on Jan 24, 2011
Latest reply on Jan 25, 2011 by Kenneth.Rice

Hi Folks,


Not sure if I should have posted this in PI-SDK or here.


I have a colleague trying to use the following


Set nvsSum = ipid2.Summaries2(StartTime, EndTime, duration, asTotal, cbTimeWeighted)


and the help files say duration can be set as VT_EMPTY or VT_NULL, when he tries to execute that code he gets an error

VB error Invalid Function Argument "Duration"

I would appreciate any help thanks