Origin Version (Select Help-->About Origin): Origin 8 SRO v8.0725 (B725) Operating System: Win XP Hello,
i´d like to copy some data from an excel workbook to origin via VBA. I know that I can use "Putworksheet..." This is running very well. But my workbook in Origin 8 consists of different worksheets, like Sheet1, Sheet2, ... At the moment I don´t know how to copy data into Sheet2, even Sheet1 is activate. Has someone an idea how to do this?
thanks for your reply. It helps alot. But I didn´t find a way to activate sheet2 in the example. In the example I find a way to check if workbook "Data" is existing. But no way to check for sheet2, sheet3, ...
thanks for your answer. It works very fine. Thank You. But there is still another question: My Origin file consits of different workbooks, graphs,... How can I activate the workbook in which I´d like to paste my data? E.g. workbook "Data1" is active and I´d like to paste my data in workbook "Data2" ?