MrExcel Publishing
Your One Stop for Excel Tips & Solutions

a very easy question


Posted by rainy on July 26, 2001 8:22 AM

what is the easiest way to import a file (unknown number of rows) into a specified location in a worksheet?

i tried this:
Workbooks.OpenText Filename:=sFile
ActiveSheet.UsedRange.Select Selection.Copy ActiveWorkbook.Close
dataSheet.Cells(40, 1).Select
dataSheet.Paste

only when i have large files i get messages that the clipboard is full
and i dont know how to avoid it


Posted by lenze on July 26, 2001 9:14 AM

Data>Get External Data. Use New Database Query or Import a Text File, whichever you need.