LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 51
Default copying cells from one file to another file

Hello. I need help. I am not a profession VBA programmer. I want to
create macro such that it will copy some cells from a file(let C:
\folder\file1) to other filelet C:\folder\file2).

The below macro isnot my main macro. However if it works, I can make
work may main macro. But the below one doesnt work, with same style
how can I make it work? Thanks alot

I try to copy "cell(1,1) of Sheet1 of C:\folder\file1" to "cell
(1,1) of Sheet1 of C:\folder\file2"

Sub macro1()
F1 = "C:\folder\file1"
F2 = "C:\folder\file2"
F2.Sheets("Sheet1").Cells(1,1) = F1.Sheets("Sheet1").Cells(1,1)
End Sub
 
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
Error Copying File or Folder message when copying file to CD [email protected] Excel Programming 0 August 2nd 08 05:43 PM
reading txt file and copying the lines in new excel file [email protected] Excel Programming 2 August 11th 06 07:20 PM
Copying the Editing in one file to Another opened XLS file Ahmad Excel Worksheet Functions 1 May 27th 05 02:04 PM
Copying rows from one file and pasting into a new file Tina Excel Programming 0 August 25th 03 04:34 AM
Copying rows from one file and pasting into a new file Stan Bauer Excel Programming 3 August 24th 03 10:41 PM


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

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

About Us

"It's about Microsoft Excel"