Line Property

This page is specific to the Visual Basic for Applications (VBA) Language Reference for Office 2010.

Description

Read-only property that returns the current line number in a TextStream file.

Syntax

object.Line

The object is always the name of a TextStream object.

Remarks

After a file is initially opened and before anything is written, Line is equal to 1.