Append data on current sheet to preset file

jardenp

Active Member
Joined
May 12, 2009
Messages
373
Office Version
  1. 2019
  2. 2016
  3. 2013
  4. 2011
  5. 2010
Platform
  1. Windows
I've searched on this and can't seem to find what I need. I've been working with an old script I found here that doesn't play well with 2010 and copies all the sheets in the current workbook.

I'm looking for VBA code (Excel 2010) to copy all the data from my active sheet (it will always be columns A-C with maybe 10-30 rows) and append it to Sheet1 of file C:\PathTest.xlsx. There are no headers to worry about in the active sheet--row 1 will contain data.

The destination file location won't change, but the active file name and location will. This is to be part of a larger macro.

The destination file will need to be opened, written to, saved, and closed, unless it's possible to manipulate file data without doing that. I do not want any pop up dialog boxes about saving or closing the destination file if possible.

Thanks!
 

Excel Facts

Create a chart in one keystroke
Select the data and press Alt+F1 to insert a default chart. You can change the default chart to any chart type

Forum statistics

Threads
1,223,228
Messages
6,170,875
Members
452,363
Latest member
merico17

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