+ Reply to Thread
Results 1 to 15 of 15

Copy and paste from one sheet to another leaving out hidden cells

Hybrid View

  1. #1
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Copy and paste from one sheet to another leaving out hidden cells

    I'm still confused. Do you want too move data from Exdrie (from the specified column headers in Post#6) if the rows are not hidden? Create a List on the List Sheet? Down the Column or Accross the row?

  2. #2
    Registered User
    Join Date
    06-19-2013
    Location
    Birmingham, England
    MS-Off Ver
    Excel 2003
    Posts
    10

    Re: Copy and paste from one sheet to another leaving out hidden cells

    I want to copy certain parts od the data that is not hidden from the ExDrie sheet and paste it Down the Columns on the List sheet.

  3. #3
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Copy and paste from one sheet to another leaving out hidden cells

    Quote Originally Posted by si_1970 View Post
    I want to copy certain parts od the data that is not hidden from the ExDrie sheet and paste it Down the Columns on the List sheet.
    Are the certain parts you want those you list in Post #6? And do you want the information posted by down or accross on the list sheet?

  4. #4
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Copy and paste from one sheet to another leaving out hidden cells

    Does this do what you want?

    Sub si_1970A()
    Range("A13").Select
    Do Until ActiveCell.Value = ""
    
        If ActiveCell.EntireRow.Hidden = True Then GoTo z
        
        ActiveCell.Offset(, 5).Copy Sheets("List").Range("A" & Rows.Count).End(3)(8)
        ActiveCell.Offset(, 12).Copy Sheets("List").Range("B" & Rows.Count).End(3)(8)
        ActiveCell.Offset(, 13).Copy Sheets("List").Range("C" & Rows.Count).End(3)(8)
        ActiveCell.Offset(, 14).Copy Sheets("List").Range("D" & Rows.Count).End(3)(8)
        ActiveCell.Copy Sheets("List").Range("E" & Rows.Count).End(3)(8)
        
    z:
        ActiveCell.Offset(1).Select
    Loop
    Sheets("List").Range("A1").EntireRow.Delete xlUp
        
    End Sub

+ 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