Sum columns in several sheets with VBA

  • Hey guys,

    I need to sum a specific column in several sheets with VBA. The column has the same name, but a different location in each sheet. Also, the number of rows in the column is dinamic. I've been working on it for a few hours now, but i cant seem to get it.

    I know i have to write excel to check sheets i to 8, and that the code to write the sum at the end of the column should look something like this: LastRow = ws.Cells(ws.Rows.Count, "E").End(xlUp).Row + 1.

    PLEASE help me!

  • Attach a sample workbook (not a picture or pasted copy). Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.


    Remember to desensitize the data.

  • Possibly...

    If I've been helpful, let me know. If I haven't, let me know that too.