Home |
Search |
Today's Posts |
#5
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
This is typical when the process writing the data to the text file doesn't
deliberately exclude the last carriage-return/linefeed. So importing as you've done will include a blank record causing the record count to inflate by 1! Garry, Thanks but the inflation-by-one only occurs if the file has just one line, with or without the CR/LF (as created by venerable Notepad); with 2 or more lines, Rows.count returns the expected result. Using VBA file I/O: I get 1 when importing a 1 line text file. I get 2 when importing a 2 line text file containing: fieldnames in line1; data record in line2; and I get 1 for RecordCount. -- Garry Free usenet access at http://www.eternal-september.org Classic VB Users Regroup! comp.lang.basic.visual.misc microsoft.public.vb.general.discussion |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Sum, Average, and Count from imported .txt file | Excel Worksheet Functions | |||
logic that returns a count | Excel Discussion (Misc queries) | |||
Some worksheet returns NULL for CodeName property. Why? | Excel Programming | |||
Count Property | Excel Programming |