Good morning everybody,
I have a data validation drop down list in cell A4 (I name this cell as IState).
I name items list for data validation drop down list as IStateMarket40 States)
Alabama
Arizona
Arkansas
California
Colorado
Idaho
Illinois
Indiana
Iowa
Kansas
....
How do you create a macro to loop through (automatically select state one after the other) the drop down list? I ultimately want to create a copy of the worksheet within the workbook without formula based on changing of each item in the data validation drop down list.
1) select first item in drop down list (range IState) (the formula will updated value based on the selection in range IState)
2) create a copy of worksheet without formula right before sheet 7,
3) Rename the new worksheet based on the text in Cell B1. For example: rename worksheet "Report (2)" to "AK" which "AK" shows in Cell B1 when IState is "Arkansas" (I use vlookup formula in Cell B1 to automatically change accordingly based on the selection in IState)
4) select next item in drop down list
5) repeat steps 2 & 4 until done with 40 states
Thank you so much for your help!
Olivia
Bookmarks