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 |
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