To make this work, you will need to make sure that each worksheet is set up exactly the same. Headers are in the same row, All data starts in the same row. Additionally, the item number must contain the full description. Look at the attached so that you can see how I set it up. Once you have set up your tables correctly, then run this code.
How to install your new code
- Copy the Excel VBA code
- Select the workbook in which you want to store the Excel VBA code
- Press Alt+F11 to open the Visual Basic Editor
- Choose Insert > Module
- Edit > Paste the macro into the module that appeared
- Close the VBEditor
- Save your workbook (Excel 2007+ select a macro-enabled file format, like *.xlsm)
To run the Excel VBA code:- Press Alt-F8 to open the macro list
- Select a macro in the list
- Click the Run button
Bookmarks