Consulting

Results 1 to 2 of 2

Thread: Copy a varying range

  1. #1
    VBAX Regular
    Joined
    Mar 2017
    Posts
    6
    Location

    Copy a varying range

    I need to select a range, copy it and paste it in anther sheet.
    But the range that I need to select is rather complicated.
    The previous code calculates 2 numbers:
    Start_Row
    Length_Row
    I need to select from
    Cells (Start_Row, 2) to Cells (Start_Row+ Length_Row-1, 2)
    Then copy this range and do ‘paste values’ only in a sheet called “Temp123” in cell $C$6.
    Can somebody please help.

  2. #2
    VBAX Expert
    Joined
    Sep 2016
    Posts
    788
    Location
    Sheets("Temp123").Cells(6, 3).Resize(Length_Row).Value = Cells(Start_Row, 2).Resize(Length_Row).Value

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •