Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Environment:
Win7 Home Premium SP1 MS Office Home 2010 Excel 14 VBA for Applications 7.0 Importing a single-line text file with the following Set qrytable = ActiveSheet.QueryTables.ADD(Connection:="TEXT;" + csvFile, ...) With qrytable .Refresh BackgroundQuery:=False nValues = .ResultRange.Rows.Count End With produces nValues=2 from the Rows.Count property. If there's more than one line in the file, Rows.Count is indeed correct. Anyone else seen this behaviour ? |
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 |