Hey Folks, let me first thank you for reading. This is my first post but I have learned so much from mrexcel.com over the last couple years. I've been asked to create something I fear might be just over my help, and am hoping someone would know if this is possible.
We have a data pull once a month and this data is split into 4 tabs. (A-H,I-M,N-T,U-Z) The data in this workbook has a last name in columns A, First Name, in column B, and some additional columns of data.
What I need to try to accomplish is to create a macro that:
1) Allows a user to browse to the correct worksheet that the search needs to be done on.
2) Will then the selected file's column A for a match (this would come from a user input box)
3) If a match is found on column A, I then need for a (2nd user input) search to be conducting on Column B
4) If there was a match to both columns, I then need the macro to pull the data from columns A -F.
So basically, I run the macro, it then has me browse to the file I want. Once I choose the file it will ask me for Last Name (Data in column A), then a second pop up will ask for the Last Name (Data in column B).
It will then search Column A (and possibly B) for a match. If a match isn't found, it will change to the next tab (I-M) and search again. This would continue through the next 2 tabs in no search is found on the first two.
When a match is found, the macro would then grab the data from rows A-F and put it in a worksheet from the workbook that the macro is built in.
Is this even possible or am I SOL? Many thanks if you got this far and hopefully I made some sense to this madness
We have a data pull once a month and this data is split into 4 tabs. (A-H,I-M,N-T,U-Z) The data in this workbook has a last name in columns A, First Name, in column B, and some additional columns of data.
What I need to try to accomplish is to create a macro that:
1) Allows a user to browse to the correct worksheet that the search needs to be done on.
2) Will then the selected file's column A for a match (this would come from a user input box)
3) If a match is found on column A, I then need for a (2nd user input) search to be conducting on Column B
4) If there was a match to both columns, I then need the macro to pull the data from columns A -F.
So basically, I run the macro, it then has me browse to the file I want. Once I choose the file it will ask me for Last Name (Data in column A), then a second pop up will ask for the Last Name (Data in column B).
It will then search Column A (and possibly B) for a match. If a match isn't found, it will change to the next tab (I-M) and search again. This would continue through the next 2 tabs in no search is found on the first two.
When a match is found, the macro would then grab the data from rows A-F and put it in a worksheet from the workbook that the macro is built in.
Is this even possible or am I SOL? Many thanks if you got this far and hopefully I made some sense to this madness