Greetings!
I'm trying to use VBA to populate a worksheet to record sales for each supplier on a given month.
Putting the data in the worksheet is actually alright as per the code below. However, I need to upgrade it as it is now possible to have multiple entries for the same reporting month. As per the example on the attached, EDF Energy (G) has already one entry for the same reporting month, i.e., Feb 2022 (O). The last entry (row 4) is what I'm aiming to achieve.
What I would like to achieve is that:
1- The VBA would give a message prompt in which it will display the number of entries for the same reporting month on the same supplier. In this example, that would be 1. This number is taken from the column AA where the number of duplication is counted.
2- The prompt will list (not more than 5 entries) each sales made for every entry on the message box [this would be optional] (I just want to see whether I can easily see these individual figures so the person who enters the data doesn't have to check back to the sales worksheet.
Here is the code I used to achieve the data recording but obviously I got stuck on the message box bit.
I hope what I wrote makes sense.
Thank you very much.
Bookmarks