The code below loops through a range of people's names in the source spreadsheet and for each one loops through fifty two columns looking for any mention of the current name. Once it finds an occurrence it adds a number (below the name) to any previously found numbers for the same fund type inside the fund's array.
Finally it writes the total from each fund array to the person's column in a statistics register, zeros the array and then begins again looking for the next person. Eventually the loops complete and the register is saved and closed.
The issue is that the Fund and Results variables are not set as can be shown with a messagebox immediately following the IF statement in question.
I would very much appreciate any time anyone can spend helping me get this script to define these variables. Cheers,![]()
Please Login or Register to view this content.
- Gordon
Bookmarks