Pushing selected data to another worksheet via VBA or Get & Transform

dotsent

Board Regular
Joined
Feb 28, 2016
Messages
89
Office Version
  1. 365
Platform
  1. Windows
Taking my first steps in VBA and Get & Transform Data functionalities in Excel 2016.

I have 2 Excel workbooks (different files) - a transport note (template.xlsm) and the second one for the entire log or history (log.xlsx). I need the rows from the transport note to be copied into the workbook with the entire history. Doing it manually is clearly not ideal with the added risk of overwriting an existing row. I also prefer not to open the history file for this process if possible.

Could you advise me if it would be possible or more feasible to handle this via VBA or can an Excel Get & Transform functionality do this (in this case, push the data out from the template file to the log file)? I have some experience with VBA, so running a macro to select the necessary rows in template.xlsm is not a problem, but not sure how to proceed to copy from one file to another as seamlessly as possible. I will add a screenshot to illustrate this:


download
 

Excel Facts

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.

Forum statistics

Threads
1,224,820
Messages
6,181,162
Members
453,021
Latest member
Justyna P

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top