Quantcast
Channel: OSIsoft Users Community
Viewing all articles
Browse latest Browse all 1120

PI ProcessBook VBA Code not Running in Order

$
0
0

Hello,

I am new to PI and Semi New to VBA, I am posting here but if this is not the correct question area I will try a different route.

I have been working on a set of displays for the past couple of months. Currently, I am working on a Fit All button to open up all of the entries in a ProcessBook and then resize them to the screen. I am doing this using VBA and have the code working for one Entry. I am having to use the Display.Close workaround because that function isn't applicable with our version of ProcessBook. The code works well for one Entry, however, upon trying to resize all the entries the code works out of order. It opens the entry, resizes and saves just fine, but, the entry stays open and does not close until ALL of the displays have been cycled through. This happens even though I have each page as a seperate subroutine and then call those subroutines in order. To my knowledge the code should run in line order. Is there a way to ensure this? Is this an inherent trait of the workaround? Thanks in advance!


Viewing all articles
Browse latest Browse all 1120

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>