ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   VB Macro to Copy from Worksheet (https://www.excelbanter.com/excel-discussion-misc-queries/156741-vbulletin-macro-copy-worksheet.html)

KCG

VB Macro to Copy from Worksheet
 
Hello all,

Please help.

I would like to create a macro to copy a range of values from Worksheet1 in
"Excel File A" to a Worksheet2 in "Excel File B". Any ideas???

Thanx for your help.

Regards




--
KCG

JE McGimpsey

VB Macro to Copy from Worksheet
 
One way:

With Workbooks("Excel File A.xls").Worksheets( _
"Worksheet1").Range("A1:J10")
Workbooks("Excel File B.xls").Worksheets( _
"Worksheet2").Range("A1").Resize( _
.Rows.Count, .Columns.Count).Value = .Value
End With

In article ,
KCG wrote:

I would like to create a macro to copy a range of values from Worksheet1 in
"Excel File A" to a Worksheet2 in "Excel File B". Any ideas???



All times are GMT +1. The time now is 11:27 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com