oldeirish
New Member
- Joined
- Nov 24, 2014
- Messages
- 40
Hi,
My workbook has contains two sheets that are used as follows. The first sheet (Current Data Source) downloads data from a remote database into 6 columns of data. The next week, I transfer this data (using VBA code) into another worksheet, with same six columns called Previous Data Source and download the new data to Current Data Source.
In Columns D the data is split into 4 criteria, Quote, HP, LP and Conf. I’d like to have VBA macros to copy only the data, from Columns A and D on both sheets that have changed since the previous week based on a cell value. The VBA code to compare only the data in Column A (Names) that have changed with the cell value in Column D (Status) from either Quote, HP, LP to “Conf”.
I’ve tried many different codes and tried several formulas as well, from VLOOKUP to INDEX and MATCH, but can’t seem to get it right. I’m new to VBA and am trying to understand it better each day, so I apologize if my request does not make a lot of sense. I’m appealing to all Excel wizards out there who can write this code in the hopes that I not lose any more hair! lol
My workbook has contains two sheets that are used as follows. The first sheet (Current Data Source) downloads data from a remote database into 6 columns of data. The next week, I transfer this data (using VBA code) into another worksheet, with same six columns called Previous Data Source and download the new data to Current Data Source.
In Columns D the data is split into 4 criteria, Quote, HP, LP and Conf. I’d like to have VBA macros to copy only the data, from Columns A and D on both sheets that have changed since the previous week based on a cell value. The VBA code to compare only the data in Column A (Names) that have changed with the cell value in Column D (Status) from either Quote, HP, LP to “Conf”.
I’ve tried many different codes and tried several formulas as well, from VLOOKUP to INDEX and MATCH, but can’t seem to get it right. I’m new to VBA and am trying to understand it better each day, so I apologize if my request does not make a lot of sense. I’m appealing to all Excel wizards out there who can write this code in the hopes that I not lose any more hair! lol