RattlingCarp3048
Board Regular
- Joined
- Jan 12, 2022
- Messages
- 166
- Office Version
- 365
- Platform
- Windows
Im looking for some help building a macro to look up the user entered data and return the location data. For example, Ive created a tab called Lookup. I would like the user to enter the data in column A. Then the macro to return the tab name, cell location, title of the column, and folder location of the column.
*Lookup the accession in whole document
*Drawer location will always be row 1 of the same column the accession was found
*Folder location will always be row 2 of the same column the accession was found
*Return "Accession not found" if error
Example
A B C D E
*Lookup the accession in whole document
*Drawer location will always be row 1 of the same column the accession was found
*Folder location will always be row 2 of the same column the accession was found
*Return "Accession not found" if error
Example
A B C D E
Accession # | Tab Name | Cell Location | Drawer | Folder | |
NT22011115NT | Drawer10-October | G12 | Drawer 10 | 2 | |
WG22014160WG | Drawer9-September | DM21 | Drawer 9 | 24 | |
| macro return | macro return | macro return | macro return |