Pulling data from PI DataLink using VBA
问题 I am pulling huge amount of data from PI Server using VBA. I am using the following code: **Dim myValues As PIValues Set myValues = PIMath.GetInterpolatedValues_Point(inputPIPoint, PIMath.StringToPITimeFormat(StartDate), PIMath.StringToPITimeFormat(NextDate), "10s")** What is the fastest way to copy all the values stored in MyValues to a column in a worksheet? I am using For Loop: For k = 1 To myValues.Count Worksheets("Sheet6").Cells(k, 2).value = myValues(k) But it is extremely slowing down