include 2 excelels in one

Topics: Developer Forum, Project Management Forum, User Forum
Feb 28, 2011 at 9:34 AM

Hi ,

i want to import into an excel 2 other excels each separately in a sheet.

Like in the 05featuredemo.inc.php example -  include "05featuredemo.inc.php";

I made separately seets and import on each, but it does not work , even if i try to import on the same sheet the 2 .

 

Please give me an example of doing this ,

 

Thanks Tibi

Coordinator
Feb 28, 2011 at 9:35 PM

05featuredemo.inc.php doesn't actually merge any excel files, it's just used as a standard PHP Include.

If you want to merge sheets from two workbooks into a single workbook, you need to load both workbooks, then use the addExternalSheet() method to copy sheets from one of those workbooks into the other, ensuring that the worksheet titles are unique.