+ Reply to Thread
Results 1 to 5 of 5

VBA coding - copy paste to next open cell

Hybrid View

  1. #1
    Registered User
    Join Date
    11-14-2011
    Location
    New York
    MS-Off Ver
    Excel 2007
    Posts
    6

    VBA coding - copy paste to next open cell

    Hi, I am trying to copy and paste information from one worksheet to another. the beginning cell reference is the same but I need to be able to find the next available cell and paste additional information. I have everything I need except one piece. When I use the selection.end (xlDown).Select, it goes the the cell 65,5536. Can someone help, Please? Thank you very much. My code looks like this -

    'Denver
    Dim rng2 As Range
    
    Sheet1.Select
        Range("K9:N9").Select
        Selection.AutoFilter
        ActiveSheet.Range("K:N").AutoFilter Field:=1, Criteria1:=RGB(255, _
            255, 0), Operator:=xlFilterCellColor
        Selection.SpecialCells (xlCellTypeVisible)
        
    With Sheet1
        .AutoFilter.Range.Offset(1, 0).Copy
    End With
        
        Sheet8.Select
        ActiveSheet.Paste
        Selection.End(xlDown).Select
        ActiveCell.Offset(1, 0).Range("A1").Select
        Sheet1.Select
        Application.CutCopyMode = False
        If ActiveSheet.AutoFilterMode = True Then
            ActiveSheet.AutoFilterMode = False
    End If

  2. #2
    Valued Forum Contributor Steffen Thomsen's Avatar
    Join Date
    10-15-2010
    Location
    Kolding, Denmark
    MS-Off Ver
    Excel 2007 and Excel 2010
    Posts
    953

    Re: VBA coding - copy paste to next open cell

    Try using

    Range("A65000").End(xlUp).Offset(1,0)

  3. #3
    Registered User
    Join Date
    11-14-2011
    Location
    New York
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: VBA coding - copy paste to next open cell

    I'm sorry. Am I replacing any existing code with that or inserting it? I tried it a couple different ways and it gives me an error.

  4. #4
    Registered User
    Join Date
    11-14-2011
    Location
    New York
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: VBA coding - copy paste to next open cell

    Hi - I just wanted to let you know that I figured it out and it works GREAT... so far. Thank you so much for the quick turnaround and the help. I really appreciate it.

  5. #5
    Valued Forum Contributor Steffen Thomsen's Avatar
    Join Date
    10-15-2010
    Location
    Kolding, Denmark
    MS-Off Ver
    Excel 2007 and Excel 2010
    Posts
    953

    Re: VBA coding - copy paste to next open cell

    Your welcome!

    If your question has ben answered, then please mark your thread as solved according to the forum rules

    Steffen Thomsen

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1