Hey, I've seen a few things similar on here but haven't been able to find exactly what I'm looking to do and am unable to piece together the code so I'm hoping someone here has a suggestion. I'm looking to perform an action on a table within the document based on its name within a cell.
If a league has the word "ball" in column A and its 'Major' league has a 'Minor' league, I want to copy the data from its table to another table (I have this last part figured out). What is the best way to loop through the data? The columns and rows will continue to expand with additional data so I'll need to make sure my range references the last used rows and columns, which I can do; and believe I know how to skip blanks, it's just this nested loop (I think) that's causing me grief.
Any help is appreciated. Thanks!
Sport | Major | Minor1 | Minor2 | Minor3 | Minor4 |
Hockey | NHL | AHL | KHL | ECHL | CHL |
Football | NFL | XFL | CFL | ||
Baseball | MLB | MiLB | |||
Soccer | MLS |
If a league has the word "ball" in column A and its 'Major' league has a 'Minor' league, I want to copy the data from its table to another table (I have this last part figured out). What is the best way to loop through the data? The columns and rows will continue to expand with additional data so I'll need to make sure my range references the last used rows and columns, which I can do; and believe I know how to skip blanks, it's just this nested loop (I think) that's causing me grief.
Any help is appreciated. Thanks!