+ Reply to Thread
Results 1 to 3 of 3

Copying Visible Cells and pasting to another worksheet

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    09-06-2012
    Location
    New York
    MS-Off Ver
    Excel 2007
    Posts
    225

    Copying Visible Cells and pasting to another worksheet

    I am trying to have the range to be copied by SpecialCells(CellTypeVisible). How can I incorporate this into the 2nd line of coding (...Range) without getting an error? The data is already filtered.


    Please assist.


    With Worksheets("MOD")
        lrow = .Range("U" & .Rows.Count).End(xlUp).Row
        .Range("U2:U" & lrow).Copy Sheets("NO WELCOME OR 30MDL").Range("A" & .Rows.Count).End(xlUp).Offset(1, 0)
    End With

  2. #2
    Forum Guru HaHoBe's Avatar
    Join Date
    02-19-2005
    Location
    Hamburg, Germany
    MS-Off Ver
    work: 2016 on Win10 (notebook), private: 365 on Win11 (desktop), 2019 on Win11 (notebook)
    Posts
    8,198

    Re: Copying Visible Cells and pasting to another worksheet

    Hi, Gard5096,

    should work with
    With Worksheets("MOD")
        lrow = .Range("U" & .Rows.Count).End(xlUp).Row
        .Range("U2:U" & lrow).SpecialCells(xlCellTypeVisible).Copy _
            Sheets("NO WELCOME OR 30MDL").Cells(Sheets("NO WELCOME OR 30MDL").Cells(Rows.Count, "A").End(xlUp).Row + 1, "A")
    End With
    Ciao,
    Holger
    Use Code-Tags for showing your code: [code] Your Code here [/code]
    Please mark your question Solved if there has been offered a solution that works fine for you

  3. #3
    Forum Contributor
    Join Date
    09-06-2012
    Location
    New York
    MS-Off Ver
    Excel 2007
    Posts
    225

    Re: Copying Visible Cells and pasting to another worksheet

    Thank you! this worked greeeeat!!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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