Ok, I have two files, one an excel spreadsheet, the other a text file. I open both in excel and want to copy cells from the text file to the spreadsheet using VBA. The code I have used is as follows:
VB Code:
Workbooks("conversion.xls").Sheets("Bintext3").Range("A1:DX64") = Workbooks("conversion.txt").Sheets(1).Range("A1:DX64")
But nothing happens! No error is returned but then again nothing is copied - I'm guessing it must be something to do with the Workbooks property???




Reply With Quote