very new to VBA but I need a macro that 1)searches for a specific input 2)goes through SheetA(raw data) through the same column to search for input 3) recognize the input search and 4) copies the entire row into SheetB
Conditions:
1) Raw data file will always be different, but the column that input is searched upon will always be the same
2) There might be multiple results for the same search, meaning multiple rows, but each rows will contain varying data
3) Able to not repeat the copy/paste from SheetA to SheetB and not miss out on any rows/searches
*Unsure if xlookup is the way to go in the VBA code
Will really appreciate any help I can get!!
Conditions:
1) Raw data file will always be different, but the column that input is searched upon will always be the same
2) There might be multiple results for the same search, meaning multiple rows, but each rows will contain varying data
3) Able to not repeat the copy/paste from SheetA to SheetB and not miss out on any rows/searches
*Unsure if xlookup is the way to go in the VBA code
Will really appreciate any help I can get!!
DelMacro2.xlsm | ||||||
---|---|---|---|---|---|---|
A | B | C | D | |||
1 | Name | Item | Date in | Date out | ||
2 | Abc | 13910 | 03-07-23 | 04-01-23 | ||
3 | Asd | 19283 | 04-07-23 | 05-01-23 | ||
4 | Aft | 14213 | 05-07-23 | 06-01-23 | ||
5 | Ayz | 13910 | 06-07-23 | 07-01-23 | ||
6 | AhE | 14331 | 07-07-23 | 08-01-23 | ||
7 | ||||||
8 | RawData | |||||
RawData |
DelMacro2.xlsm | |||||||
---|---|---|---|---|---|---|---|
A | B | C | D | E | |||
1 | Search | 13910 | <-- Item input cell | ||||
2 | |||||||
3 | Name | Item | Date out | Date in | |||
4 | |||||||
5 | |||||||
6 | |||||||
7 | ^Data from RawData expected to be populated | ||||||
Form |