Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
KCG KCG is offline
external usenet poster
 
Posts: 20
Default 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
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4,624
Default 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???

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Macro to copy worksheet clarknv Excel Discussion (Misc queries) 2 June 17th 07 08:42 PM
macro to copy worksheet vitorjose Excel Worksheet Functions 0 January 25th 07 01:01 AM
create a macro to copy a worksheet into another Sean Excel Discussion (Misc queries) 7 October 18th 06 10:19 PM
I need help with a macro which will copy a worksheet and.. Greegan Excel Worksheet Functions 2 July 29th 05 11:48 PM
macro to copy and edit then delete a worksheet lschuh Excel Discussion (Misc queries) 13 July 27th 05 09:02 PM


All times are GMT +1. The time now is 02:21 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"