AnsweredAssumed Answered

disable VBA in a Processbook temporarily

Question asked by DavidMFairchild on Mar 27, 2015
Latest reply on Apr 2, 2015 by Eugene Lee
Branched from an earlier discussion

Thanks Ryan,


I had resolved it in a similar manner:


      foreach (PBObjLib.Entry item in book.Entries)


            if (item.Type == 1 || item.Type == 2)


                  app.ProcBooks.Open(book.Path + "!" + item.Label, true);

                  PBObjLib.Display disp = app.ActiveDisplay;






Now I need to figure out how to disable VBA in a Processbook temporarily while I update the tags to use the new PI server.  I’m looking at trying to use the properties of the Application.VBE object, but documentation on that is scarce.



David Fairchild

ECS Analyst, PSE

ph: 425-882-4422

m: 425-563-3125