Export (0) Print
Expand All
T
Expand Minimize

TextFileStartRow Property [Excel 2003 VBA Language Reference]

Office 2003

Returns or sets the row number at which text parsing will begin when you import a text file into a query table. Valid values are integers from 1 through 32767. The default value is 1. Read/write Long.

Remarks

Use this property only when your query table is based on data from a text file (with the QueryType property set to xlTextImport).

Example

This example sets row 5 as the starting row for text parsing in the query table on the first worksheet in the first workbook, and then it refreshes the query table.

Set shFirstQtr = Workbooks(1).Worksheets(1) 
Set qtQtrResults = shFirstQtr.QueryTables _
    .Add(Connection := "TEXT;C:\My Documents\19980331.txt", _
        Destination := shFirstQtr.Cells(1,1))
With qtQtrResults
    .TextFileParseType = xlDelimited
    .TextFileStartRow = 5
    .TextFileTabDelimiter = True
    .Refresh
End With
		


Applies to | QueryTable Object


Show:
© 2014 Microsoft