Consulting

Results 1 to 3 of 3

Thread: Solved: paste to last empty row and beyond

  1. #1
    VBAX Mentor
    Joined
    Sep 2004
    Posts
    431
    Location

    Solved: paste to last empty row and beyond

    also posted at Mr Excel
    http://www.mrexcel.com/forum/showthread.php?t=334623

    A small example attached to explain visually what I'm trying to do to solve this posting

    http://www.vbaexpress.com/forum/showthread.php?t=21363
    Thank you for your help

  2. #2
    VBAX Master Norie's Avatar
    Joined
    Jan 2005
    Location
    Stirling, Scotland
    Posts
    1,831
    Location
    This worked on the sample data.
    [vba]

    Sub test()
    Dim rngSrc As Range
    Dim rngDst As Range
    Set rngSrc = Worksheets("Sheet1").Range("A1").CurrentRegion

    Set rngDst = Worksheets("result").Range("A1")

    While rngDst.Value <> ""

    rngSrc.Copy rngDst.Offset(1)

    Set rngDst = rngDst.Offset(3)

    Wend


    End Sub[/vba]

  3. #3
    VBAX Mentor
    Joined
    Sep 2004
    Posts
    431
    Location
    Excellent Norie.
    Thank you
    Thank you for your help

Posting Permissions

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