VBA Example: Targets to Excel
This macro writes the coordinates for all targets into an Excel sheet. It's easy to modify it for other data.
Open VBA (Alt+F11) and import the form. You also need to put a reference to the ABB RobotStudio MathUtility and Microsoft Excel