Jump to content

[SOLVED] php excel question


dennismonsewicz

Recommended Posts

I have a huge excel spreadsheet and a lot of rows are highlighted the same color (IE: red) I am wanting to go through and delete all of the rows that have the same background color... is there anyway of doing this? I have tried googling it and I can't find anything... everything i find is in VB (EW)

Link to comment
https://forums.phpfreaks.com/topic/143691-solved-php-excel-question/
Share on other sites

The latest Subversion code for PHPExcel provides row and column iterators.

You could use a rowIterator to loop through every row in each worksheet, test the background colour of each row, and delete it as required before writing the whole workbook back to file.

Thanks! I will have to check it out... I have used the PHPExcel before to dump results from MySQL out to an excel spreadsheet so loading in an excel spreadsheet and modifying it via this script shouldn't be too hard to do. Thanks again!

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.