Macro help to select all & copy

LNG2013

Active Member
Joined
May 23, 2011
Messages
466
Hey everyone in part of my macro I have it select the data to be copied. Currently I am using a range but was wondering what I could use to select all instead. Code is below~


Code:
Workbooks.Add
    Workbooks.Open Filename:=ThisWorkbook.Path & "\Bond.csv"
[B]  Range("A1:IV2000").Copy[/B]
    Windows("Book1").Activate
    ActiveSheet.Paste
 

Excel Facts

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college
Perhaps

Code:
Workbooks.Add
Workbooks.Open Filename:=ThisWorkbook.Path & "\Bond.csv"
ActiveSheet.UsedRange.Copy
Windows("Book1").Activate
ActiveSheet.Paste
 
Upvote 0

Forum statistics

Threads
1,224,574
Messages
6,179,633
Members
452,933
Latest member
patv

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