Share via


Range.Parse Method

Parses a range of data and breaks it into multiple cells.

Namespace:  Microsoft.Office.Interop.Excel
Assembly:  Microsoft.Office.Interop.Excel (in Microsoft.Office.Interop.Excel.dll)

Syntax

'Declaration
Function Parse ( _
    ParseLine As Object, _
    Destination As Object _
) As Object
'Usage
Dim instance As Range
Dim ParseLine As Object
Dim Destination As Object
Dim returnValue As Object

returnValue = instance.Parse(ParseLine, _
    Destination)
Object Parse(
    Object ParseLine,
    Object Destination
)

Parameters

  • ParseLine
    Type: System.Object

    Optional Object. A string that contains left and right brackets to indicate where the cells should be split.

    For example, "[xxx][xxx]" would insert the first three characters into the first column of the destination range, and it would insert the next three characters into the second column.

    If this argument is omitted, Microsoft Excel guesses where to split the columns based on the spacing of the top left cell in the range. If you want to use a different range to guess the parse line, use a Range object as the ParseLine argument. That range must be one of the cells that's being parsed. The ParseLine argument cannot be longer than 255 characters, including the brackets and spaces.

  • Destination
    Type: System.Object

    Optional Object. A Range object that represents the upper-left corner of the destination range for the parsed data. If this argument is omitted, Microsoft Excel parses in place.

Return Value

Type: System.Object

Remarks

Distributes the contents of the range to fill several adjacent columns. The range can be no more than one column wide.

See Also

Reference

Range Interface

Range Members

Microsoft.Office.Interop.Excel Namespace