Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
Cam Cam is offline
external usenet poster
 
Posts: 165
Default macro copy data from one file to another?

Hello,

I have two files in a network drive where file1 contain a pivot data that is
generated (added data in the last column) each day. then I have to open file1
to copy the data for today and pasted into another file2 where I did all the
calculation and graphing.
I would like to create a macro where it will open or copy the last column
(E1:E7) with data from file1 and paste it to the last column without data
(O1:O7) in file2 in sheet data.

Here are the sample of data from both files.
File1: Sheet1 sheet
A B C D E
Alt WC 2/20/2008 2/21/2008 2/22/2008
1 100 20 22 15
230 13 14 14
300 11 11 16
430 1.3 1.2 2.5
450 1.1 21.5 11.6
500 1.0 3.1 1.4

File2: Data sheet
A B M N O
Alt WC 2/20/2008 2/21/2008
1 100 20 22
230 13 14
300 11 11
430 1.3 1.2
450 1.1 21.5
500 1.0 3.1

NOTE: column C to L have existing data from file 2. Thanks
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
copy data for match word from one file to another file mishak Excel Worksheet Functions 1 December 2nd 09 02:11 AM
Copy data from an HTML file and paste into excel using a macro Karl S Excel Programming 1 March 18th 07 07:51 PM
recrding macro,copy data thn close file, get messge abut clpbord PaddyBoy Excel Discussion (Misc queries) 2 October 25th 06 04:38 AM
macro to autofilter other file and copy in opened file matthias Excel Programming 4 August 17th 06 10:52 AM
VBA Macro to copy an column from one Excel file into another file Sam Excel Programming 4 July 3rd 05 03:36 AM


All times are GMT +1. The time now is 05:21 PM.

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"