how to translate the PE code to VBA in PB?

Discussion created by xwang Employee on Nov 16, 2011
Latest reply on Nov 17, 2011 by hanyong

  I need to use this  macro code in PI processbook . This code works in PI calculations.  How do I code this in Pi Processbook?
 Test =  (tagval('71pca5','*') - prevval('71pca5',prevevent('71pca5','*'))) /((prevevent('71pca5','*')) - (prevevent('71pca5',prevevent('71pca5','*'))))




Note: it is from one customer, who do not buy the vCampus License.  I wish I could get the useful solution here, and suggest the customer to join in vCampus.  Thanks for your guy help.