2 Replies Latest reply on Mar 3, 2010 10:44 PM by ssaputro

    How to adding Library using by VBA code

    ssaputro

      Hi,

       

      Does anyone know how to add library using VBA code (in PI-ProcBook)? 

       

      Where I work PI Displays are opened 24/7 and often when the displays have been updated in the public directory, people don't realize they still looking at outdated displays.  So the idea is to add VBA code in all displays to use FileSystemObject library to check periodically in the folder whether it (itself, i.e. the open file) has been updated recently.  But the code needs to be programatically added to the displays so I need a way to add the FileSystemObject libraryby CODE, - NOT manual add (Tool->References).

       

      Note: I found some syntax to do in Microsoft VBA (excel, access), but the code doesn't work with Procbook.

       

      Thanks in advance!