I have some inputs in Column A that are in the format DATE_Package # . Date is in YYYY-MM-DD format.
Example
2016-10-24_Package 24
2016-10-24_Package 25
2016-10_31_Package 26
2016-11-01_Package 27
2016-11-01_Package 28
All these values are in sequential order.
I want my program to find the maximum of the above. Meaning = the most recent and message what my next pacakge number will be. So when macro button is clicked, it should pick todays's date and add suffix "Package 29" and thereby should read as 2016-11-02_Package 29
Used a similar program for 3 years where the very same column was just numerical. Example, 1,2,3,4..... . So I used a code to find the Maximum and then add a count to it and messagebox the new one. Here is the code I used initially
I tried to use thisPlease Login or Register to view this content.
but it ends up giving the same value .Please Login or Register to view this content.
So how do i improvisein the the above code so that it just adds up the numberPlease Login or Register to view this content.
Bookmarks