expression.CaptureScreen()
where expression is a variable that represents a ScreenHistory Object
For more about the CaptureScreen method, see:
This sample captures a specific screen in screen history when the screen opens. Other screens are not captured.
To run this sample, create an Ibm3270 session with the host IP address set to demo:ibm3270.sim and then paste the code into the ThisIbmScreen code window. From the VBA editor View menu, choose Immediate Window. Then enter any credentials to log in and then enter kayak. On the Session ribbon, click Screen history to see the results.