Hi, I am a newbie of VBA, but I can understand the very basic codes. I have been learning through using the marco recorder.
However, I faced a problem that I cant use the macro recorder to solve it, and could anyone give me some help please.
Problem:
I would like to have a VBA code that pulls the data from a lookup worksheet onto a result sheet. It will become more clear if you could carry on reading.
Background/context:
----------------------lookup sheet---------------------------
There are 3 scenarios each of which has a month row and a number row which corresponds to a particular month. The difference among the scenarios is that the order of the month has an irregular pattern.
----------------------result sheet---------------------------
It only has a month row, and I would like the VBA code to pull the data according to the order of the month set below the month row on this worksheet. The year in the lookup sheet can be ignored, as long as the month is matched. The VBA code should be able to adapt the 3 scenarios set on the lookup sheet.
Please find attached a spreadsheet that includes the problem described above.
Thank you!
Bookmarks