Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.
Hi all, please see this major site announcement: https://www.boards.ie/discussion/2058427594/boards-ie-2026

Excel help

  • 29-07-2019 12:35PM
    #1
    Registered Users, Registered Users 2 Posts: 14


    Hi All. I need some help with an Excel issue.
    I have a macro to create a monthly invoice from the master data sheet. However I need to repeat the macro for each row in the master data sheet, stopping at the last row. The number of rows vary month to month.

    Appreciate any help.


Comments

  • Registered Users, Registered Users 2 Posts: 2,417 ✭✭✭antix80


    Counting the number of non-blank cells in the column headed "invoice number" should work.
    The excel function is COUNTA(A:A) and then you'll have to do a for loop (for x = 1 to numberOfNonBlankCells)


Advertisement