I would suggest you to search for "Advanced PI Client ActiveX Scripting Course Materials" on the OSIsoft Technical Support website. You will then open the document contained in it and take a look at the section that goes over external ProcessBook scripting. While the external application in this case is not specifically the iFIX SCADA/HMI, but Microsoft Excel, I would guess the differences in the in the iFIX VBA code should not that many.
There is a corresponding YouTube video playlist that goes over this course and this is the address of the first of the videos that discuss the topic you are interested in:
Thank you. I am also interested in being able to open a PI Trend from an IFIX 5.9 display. I assume that an Active View license/software is required?
Is there any other alternatives or does anyone have any example?
Thank you so much