TopLine Property Example

The following example uses the TopLine property to return the line number of the top line in the specified code pane.

Debug.Print Application.VBE.CodePanes(3).TopLine