Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default Copying data across 2 xcel files

Hi there

I have 2 separate xcel files and want to copy columns A:D
of file1 into A:D of file2.
To copy across different sheets in the same file I would do
Sheet1.Range("A:D").Value = Sheet2.Range("A:D").Value

Is there a way to copy across 2 different xcel files in a
simliar manner show above, so that I would avoid the use
of clip board.
Currently I'm copying them using clip board as shown below:

Workbooks("File1.xls").Activate
Range("A:D").Select
Selection.Copy
Workbooks("File2.xls").Activate
Range("A:D").PasteSpecial
Application.CutCopyMode = False 'Clears wriggly worms


Thanks
Gandei
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Copying data across 2 xcel files


workbooks("File2.xls").Sheet1.Range("A:D").Value = _
Workbooks("File1.xls").Sheet2.Range("A:D").Value

--

Regards,
Tom Ogilvy

"Gandei" wrote in message
...
Hi there

I have 2 separate xcel files and want to copy columns A:D
of file1 into A:D of file2.
To copy across different sheets in the same file I would do
Sheet1.Range("A:D").Value = Sheet2.Range("A:D").Value

Is there a way to copy across 2 different xcel files in a
simliar manner show above, so that I would avoid the use
of clip board.
Currently I'm copying them using clip board as shown below:

Workbooks("File1.xls").Activate
Range("A:D").Select
Selection.Copy
Workbooks("File2.xls").Activate
Range("A:D").PasteSpecial
Application.CutCopyMode = False 'Clears wriggly worms


Thanks
Gandei



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
Copying from different files into 1 LiAD Excel Discussion (Misc queries) 1 November 4th 09 01:57 PM
Copying Files RH206 Excel Discussion (Misc queries) 2 April 1st 08 08:21 PM
Merge data from xcel to word jpcontrol Excel Worksheet Functions 3 January 17th 08 02:01 PM
cannot get certain files and folders to open in xcel and word vikes fan Excel Discussion (Misc queries) 2 February 22nd 07 05:25 PM
xcel files will not automatically load xcel data file does not open automatical Setting up and Configuration of Excel 1 April 5th 05 07:55 AM


All times are GMT +1. The time now is 01:36 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"