I'm working on a spreadsheet that formats a report pulled externally from an application. Most of my formatting is done, but for one portion of it I just need to select all cells in range A9:IZ where Z is the number of rows up until a specific string (not including the string itself).
Here is an example sheet. I need everything from A1:I649 selected, it's the row right above cell A650, which always has the string "***Total" in it. This report is dynamic, so changes length every day, but I formatted it so that ***Total always appears at the bottom. I just can't figure out how to select everything up until it for the next part of my script. I've already set up the rest of my code, I just need to nail this portion of it.
I made a shorthand image for a visual. In this case, I need A10:I30 to be my selected range, as it's the row right before ***Total

Just need it selected, because the rest of my script handles the rest of the formatting.