Amit Punia
Member
2 files are attached in this thread. In the "Originating File.xlsm", Column B tells the Sheet name and Column C consists the cell address. There is Column A which is having all the amounts.
Need a VBA code which checks data in Column B and C and update the amount from Column A to the cell address mentioned in Column C.
For e.g. The first one is referring to cell F10 in cell C2. So if the value of cell B2 is "Profit & Loss Account", the code should go directly in workbook "Target File.xlsx" and activate "Profit & Loss Account" sheet, after that if the value of cell C2 is "F10" then the code should go to in cell F10 of of the same sheet(i.e. "Profit & Loss Account") and it should update the value of Amount from Cell A2("Originating File").
So in "Target File.xlsx", Cell F10 should have "55" number inside the cell.
In Target File, all the cells which are going to be affected are in Yellow Color.
Need a VBA code which checks data in Column B and C and update the amount from Column A to the cell address mentioned in Column C.
For e.g. The first one is referring to cell F10 in cell C2. So if the value of cell B2 is "Profit & Loss Account", the code should go directly in workbook "Target File.xlsx" and activate "Profit & Loss Account" sheet, after that if the value of cell C2 is "F10" then the code should go to in cell F10 of of the same sheet(i.e. "Profit & Loss Account") and it should update the value of Amount from Cell A2("Originating File").
So in "Target File.xlsx", Cell F10 should have "55" number inside the cell.
In Target File, all the cells which are going to be affected are in Yellow Color.