I have a workbook that has sheet1 filled with a bunch of data and I need to write some vb code to do the following:
1. Starting row 11 count how many ROWS are used from 11 to end of list.
2. Take the amount of rows from sheet1 and populate sheet2 rows starting at cell A5.
3. Apply formulas related to different cells in each row, ex: A5+C5=J5, A11+D11=M11, etc...
4. Apply conditional formatting so that it colors every other row based on how many rows are used.(I can do conditional formatting, just dont know how to apply it to a certain range of rows based on a count.
5. Add a "totals" cell that sums the values based on how many rows are used puts the cell directly under the rows used without conditional formatting. ex: If rows 5-12 are used it will put the total in row 13 and add rows 5-12.
One thing to note is the reason the amount of rows needs to be counted is because the amount of rows will change every time I run this code. I could use 5 rows today, 27 rows tomorrow and not every cell in a row will be used. Right now I am copy/pasting everything and when I do that it breaks all my formulas, formatting so I have to do it all by hand over and over.
So is this even possible with Excel or should I be using something else?
Bookmarks