I'm trying to automate a form that was built in Excel so that the information within the form is automatically organized into a table on another sheet.
I've worked out most of the process but the issue I'm having is that a part of the form lists different codes for each of the broadcast zones that are involved. And along with those zones they include the market area that the zone belongs to. When I compile the information to create the new record for the table they want the information to be grouped by market.
In other words, for each market listed on the form they want a separate line in the table, keeping all the other data the same.
Here's an example list of markets that I'm using to build this process:
Florence-Myrtle Beach
Florence-Myrtle Beach
Los Angeles
Greensboro-H.Point-W.Salem
Greensboro-H.Point-W.Salem
Florence-Myrtle Beach
Los Angeles
Green Bay-Appleton
Dallas-Ft. Worth
Los Angeles
Florence-Myrtle Beach
Green Bay-Appleton
Green Bay-Appleton
Dallas-Ft. Worth
Dallas-Ft. Worth
I figure that I'll need to put together some sort of a Do...Loop statement to loop through the different markets in the form but what's the best way to compile a unique list of markets using VBA that I can then use for the Do...Loop statement?
So far I've been looking at different types of arrays but I haven't quite found anything that will work for what I need.
Any assistance provided will be greatly appreciated!
Travis
Charter Media
I've worked out most of the process but the issue I'm having is that a part of the form lists different codes for each of the broadcast zones that are involved. And along with those zones they include the market area that the zone belongs to. When I compile the information to create the new record for the table they want the information to be grouped by market.
In other words, for each market listed on the form they want a separate line in the table, keeping all the other data the same.
Here's an example list of markets that I'm using to build this process:
Florence-Myrtle Beach
Florence-Myrtle Beach
Los Angeles
Greensboro-H.Point-W.Salem
Greensboro-H.Point-W.Salem
Florence-Myrtle Beach
Los Angeles
Green Bay-Appleton
Dallas-Ft. Worth
Los Angeles
Florence-Myrtle Beach
Green Bay-Appleton
Green Bay-Appleton
Dallas-Ft. Worth
Dallas-Ft. Worth
I figure that I'll need to put together some sort of a Do...Loop statement to loop through the different markets in the form but what's the best way to compile a unique list of markets using VBA that I can then use for the Do...Loop statement?
So far I've been looking at different types of arrays but I haven't quite found anything that will work for what I need.
Any assistance provided will be greatly appreciated!
Travis
Charter Media