AnsweredAssumed Answered

Resizing array on DataLink

Question asked by jarosk on Jun 4, 2020

I am trying to implement the solution detailed on this page, specifically "Select and resize PI DataLink functions in a specific location". However, I think am getting an error on the line automationObject.SelectRange that is a message box saying "Object reference not set to an instance of an object" and you can just select Ok. However, the array still resizes to show all of the data. As I have over 100 data items, it is not sufficient to just click through all the message boxes. Thank you in advance for your help!!

Code:

Outcomes