I inherited a template that I use frequently. It has several macros, but there is one that I would like to simplify/reduce if possible.
My best understanding of what it does is, it selects and copies a cell on one sheet (POC Calc), and then uses that selection to choose an option from a dropdown list on another sheet (PM input). The option from the dropdown list populates another range of cells which then gets selected and copied. The data that was copied is then pasted into a cell back in the POC Calc sheet.
It then goes back and does the same thing over and over again, until the list on the PM input sheet is exhausted. I currently have to manually adjust the number of times the code repeats based on how many items are in the list in the PM input sheet or the number of populated cells in the range on the POC Calc sheet (The list in the dropdown of the PM input sheet and the items in the range on the POC Calc are identical).
Can the code be simplified by using some type of loop? This would be great so that I don't have to manually update the code each time I use the template.
(Sample file also attached).
The person who built the template placed a button at the top of the POC Calc sheet to run the macro in question.
Thank you!
Bookmarks