Hi Jeff, sorry for that.
Problem of statement
A set of data has 3 columns of:
- Column A contains the Batch ID
- Column B contains the production date
- Column C contains the ship date
The Batch ID has a two-digit code to the left of the hyphen and a 3- or 4-digit code to the right of the hyphen. The first letter of the Batch ID is known as the Identifier and the leading number of the 3- or 4-digit code to the right of the hyphen is known as the Key. For example, in the Batch ID "N9-363B", the Identifier is "N" and the Key is 3.
Your goal is to create a subroutine that allows the user to select the Identifier from a drop-down menu in cell F2 and the Key from a drop-down menu in cell F3 (these drop-down/data validation menus are already available in the starter file) and any rows of the data (columns A, B, and C) whose Batch ID meets those criteria will be highlighted GREEN.
For example, if we start with the worksheet layout above and run the subroutine with the Identifier set to "C" and the Key set to 2, we would get the data as shown in the screenshot Screenshot 2.png
The RUN button is linked to the HighlightRows subroutine in the starter file. The RESET button is already linked to the Reset subroutine in the starter file so please do not modify it. When run, the RESET button (or Reset sub) will remove any fill color/highlighting from anywhere on the "Data" sheet. However, it will not remove any additional rows that you may add, so be sure to reset the data (by copying/pasting) present in the "Original Data" tab if you add or change any of the original data.
In the Visual Basic editor in the original file also includes :
Could you please suggest? Thanks a lot!
Bookmarks