Excel VBA - Row

Card Puncher Data Processing

Example

The following procedure copies a row from Sheet1 to Sheet2 in the active workbook.

Sub CopyRow() 
    Worksheets("Sheet1").Rows(1).Copy 
    Worksheets("Sheet2").Select 
    Worksheets("Sheet2").Rows(1).Select 
    Worksheets("Sheet2").Paste 
End Sub





Discover More
Card Puncher Data Processing
Excel VBA - Range

Range represents: a cell, a row, a column, a selection|selection of cells containing one or more contiguous blocks of cells, or a 3-D range. Range property: If you use a text argument...



Share this page:
Follow us:
Task Runner