ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Import Txt file over several excel sheets (https://www.excelbanter.com/excel-discussion-misc-queries/212112-import-txt-file-over-several-excel-sheets.html)

Tamara

Import Txt file over several excel sheets
 
Hi, I have sucessfully used Ron de Bruin's, Copy Txt to new worksheet macro.
My txt file now however has more lines than what 1 excel page can handle.
Is it possible have the macro identify the last line imported into excel and
place all remaining lines onto a new page?

Gord Dibben

Import Txt file over several excel sheets
 
Tamara

The MS Knowledge Base has code to copy large text files across multiple
sheets.

http://support.microsoft.com/default...;en-us;Q120596


Gord Dibben MS Excel MVP

On Mon, 1 Dec 2008 16:59:01 -0800, Tamara
wrote:

Hi, I have sucessfully used Ron de Bruin's, Copy Txt to new worksheet macro.
My txt file now however has more lines than what 1 excel page can handle.
Is it possible have the macro identify the last line imported into excel and
place all remaining lines onto a new page?



Chip Pearson

Import Txt file over several excel sheets
 
I have code on my web site that will import a text file with any
number of lines and will continue the import process from one
worksheet to the next until the entire file is read in. There is no
limitation on the size of the text file other than the limitation on
Long type variables (4 billion lines) and Excel's own available
memory. There are many configuration options to control how the file
is imported, number of record per sheet, and so on. See
www.cpearson.com/Excel/ImportBigFiles.aspx for code and details.

Cordially,
Chip Pearson
Microsoft MVP
Excel Product Group
Pearson Software Consulting, LLC
www.cpearson.com
(email on web site)





On Mon, 1 Dec 2008 16:59:01 -0800, Tamara
wrote:

Hi, I have sucessfully used Ron de Bruin's, Copy Txt to new worksheet macro.
My txt file now however has more lines than what 1 excel page can handle.
Is it possible have the macro identify the last line imported into excel and
place all remaining lines onto a new page?



All times are GMT +1. The time now is 03:08 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com