This week's book giveaway is in the Testing forum. We're giving away four copies of The Way of the Web Tester: A Beginner's Guide to Automating Tests and have Jonathan Rasmusson on-line! See this thread for details.
The program bellow creates a copy of an excel file. I am using the HSSFWorkbook object because i need to change information on the new file. The problem is that an object that was created in the original file lost its focus on the copied file. For example, I add a power point object in the original file, and in the copied file i can see the object, but clicking on it reveals the error message "cannot start the source application for this object"