Hi people from the internet!
I'm trying to find a solution through VBA for the following dummy situation; there are two workbooks (Table A & Table B) and both contain product information. Table A has it's data provided through SQL and will be the 'master' file. Table B has to automatically get the new products inserted from A.
- So first compare Column A from Table A with Column A from Table B
- If the value from Table A is not in Table B
- Add a row
- Paste value from Table A in Table B (only Product is ok)
Table A
Table B
Note:
This stuation is part of a bigger automation project and thus i'm limited in options for certain parts of the workflow.
The Excel files are inteded with column headers.
I know you can insert formulas to refer to cells from different workbooks but that approach doesn't provide all the solutions
Thanks for any help/suggestions/code My bad for not the best english here and there.
Kind regards,
Nathan
I'm trying to find a solution through VBA for the following dummy situation; there are two workbooks (Table A & Table B) and both contain product information. Table A has it's data provided through SQL and will be the 'master' file. Table B has to automatically get the new products inserted from A.
- So first compare Column A from Table A with Column A from Table B
- If the value from Table A is not in Table B
- Add a row
- Paste value from Table A in Table B (only Product is ok)
Table A
Product | Description |
ProductXY | Lorem ipsumXY |
ProductXX | Lorem ipsumXX |
ProductYY | Lorem ipsumYY |
Table B
Product | Description |
ProductXY | Lorem ipsumXY |
ProductYY | Lorem ipsumXX |
Note:
This stuation is part of a bigger automation project and thus i'm limited in options for certain parts of the workflow.
The Excel files are inteded with column headers.
I know you can insert formulas to refer to cells from different workbooks but that approach doesn't provide all the solutions
Thanks for any help/suggestions/code My bad for not the best english here and there.
Kind regards,
Nathan
Last edited by a moderator: