lazycoder89
New Member
- Joined
- May 22, 2011
- Messages
- 4
Hi,
I'm having problem in doing the following.
Suppose I have two excel files book1 and book2. Both have two coloumns ID and flag.
I need a macro that can read data from the 'ID' column of the excel(book1) where the value of 'flag' in column is "Y" from one sheet , compare it with the 'ID' of the second excel (book2) and only copy the data only where the IDs matches, to another sheet.
Also I need to know how can it be done in case it is only for two sheets instead of two different excel.
Thanks
I'm having problem in doing the following.
Suppose I have two excel files book1 and book2. Both have two coloumns ID and flag.
I need a macro that can read data from the 'ID' column of the excel(book1) where the value of 'flag' in column is "Y" from one sheet , compare it with the 'ID' of the second excel (book2) and only copy the data only where the IDs matches, to another sheet.
Also I need to know how can it be done in case it is only for two sheets instead of two different excel.
Thanks