(xldown) Next Blank Row

redsoxfan89

New Member
Joined
Aug 9, 2007
Messages
2
Hi,

I created a macro (shown below)in VBA to export data from an excel spreadsheet to another spreadsheet. When I use this code, it works beautifully, but the new data that is transferred overwrites the data I had previously exported. Is there a way to make it so that the new data comes in the row of cells below the old data? Can you manipulate my code so it works? Thanks.

Macro1 ()

Selection.Copy
Windows("AASHISH_PROJECT_TEST.xls").Activate
Sheets("CP").Select
Range("A3").Select
Sheets("CP").Paste
End Sub
 

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).

Forum statistics

Threads
1,191,687
Messages
5,988,014
Members
440,125
Latest member
vincentchu2369

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
Top