Home |
Search |
Today's Posts |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Joel,
Thank you very much, It works Ed Dror "Joel" wrote in message ... Sub Button1_Click() RowCount = 1 do while Range("A" & RowCount) < "" FileCopy Range("A" & RowCount), Range("B" & RowCount) RowCount = RowCount + 1 loop End Sub "Ed Dror" wrote: Hi there, I'm using excel 2007 and I wrote Sub Button1_Click() FileCopy "C:\Excel\book1.txt" , "C:\Excel\Test\book2.txt" End Sub Everything works file but lets assume I have in my spreadsheet two columns Column A = Source directory looks like this C:\Source\file1.txt C:\Source\file2.xls .... And so on Column B = Destination looks like this C:\Destination\file11.txt C:\Destination\file22.xls .... And so on My question is how make the copy and paste function to read the copy and paste from the spreadsheet itself Until the end of the list of files Thanks, Ed Dror Andrew Lauren Co. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Copy/Paste Special from Many Files | Excel Programming | |||
Copy and Paste Between Files | Excel Discussion (Misc queries) | |||
Copy and Paste Between Files | Excel Programming | |||
VB macro to load/copy/paste multiple files into one spreadsheet. | Excel Programming | |||
Copy and Paste ranges between files | Excel Programming |