Hi Excel Gurus,
Running into a bit of trouble writing some VBA code to do 2 things:
1) search a range (the first row of my table) for all cells that have forumlas and copy them down the column to the last row of the table
2) reset all the conditional formatting for the table based on the conditional formatting in the first row of the table down to the last row of the table.
Some considerations
1) there are hidden columns (not sure if that matters)
2) Excel 2010
Background:
I have a table with data in rows B9:BE200. The first row of the table is protected to preserve the formatting and forumlas. In that first row (B9:BE9) some cells have forumlas, some have values, and some are blank. The rest of the rows in the table can be changed. Deleting a row is often necessary, as is adding a row but it creates #REF errors. I'd like to create a macro that in one click will go to the protected first row of the table and 'reset,' if you will, all the formulas down the columns (ignoring the cells that have values or are blank). After that is complete, then reset all the conditional formatting for the table based on the formatting of the first row.
I know there are some good VBA functions like '.hasformula' but am not sure how to use them in a loop that satisfies the above.
Thanks!
Tim