cmschmitz24
Board Regular
- Joined
- Jan 27, 2017
- Messages
- 150
I have a workbook with 5 different tabs. Each tab is a different report however each report could have the same data in column A on each of them.
I would like to know how to write a VBA code that would search across each worksheet and pull back "text" that would let me know what tab(s) each data is on.
For example:
sheet 1 has a number in column A that is also represented in sheets 2, 3, 4 and 5. I would like the VBA to add a note to sheet 1 in column J K L or M.
If the number in sheet 1 cell A25 is found on sheet 2, then add a note in sheet 1 cell J25 "yes".
"" on sheet 3, then add a note in sheet 1 cell K25 "yes".
"" on sheet 4, then add a note in sheet 1 cell L25 "yes".
"" on sheet 5, then add a note in sheet 1 cell M25 "yes".
Then,
I need this process to do the same for each sheet following.
If the number in sheet 2 cell A25 is found on sheet 3, then add a note in sheet 2 cell X25
"" on sheet 4, then add a note in sheet 2 cell Y25 "yes"
"" on sheet 5, then add a note in sheet 2 cell Z25 "yes"
"" on sheet 1, then add a note in sheet 2 cell V25 "yes"
etc.
Let me know if you need anymore information.
Thanks!
Christina
I would like to know how to write a VBA code that would search across each worksheet and pull back "text" that would let me know what tab(s) each data is on.
For example:
sheet 1 has a number in column A that is also represented in sheets 2, 3, 4 and 5. I would like the VBA to add a note to sheet 1 in column J K L or M.
If the number in sheet 1 cell A25 is found on sheet 2, then add a note in sheet 1 cell J25 "yes".
"" on sheet 3, then add a note in sheet 1 cell K25 "yes".
"" on sheet 4, then add a note in sheet 1 cell L25 "yes".
"" on sheet 5, then add a note in sheet 1 cell M25 "yes".
Then,
I need this process to do the same for each sheet following.
If the number in sheet 2 cell A25 is found on sheet 3, then add a note in sheet 2 cell X25
"" on sheet 4, then add a note in sheet 2 cell Y25 "yes"
"" on sheet 5, then add a note in sheet 2 cell Z25 "yes"
"" on sheet 1, then add a note in sheet 2 cell V25 "yes"
etc.
Let me know if you need anymore information.
Thanks!
Christina