+ Reply to Thread
Results 1 to 2 of 2

SpecialCells xlCellTypeVisible . Copy copies all rows not just visible rows

  1. #1
    Forum Expert dflak's Avatar
    Join Date
    11-24-2015
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    7,920

    SpecialCells xlCellTypeVisible . Copy copies all rows not just visible rows

    Below is the code. According to scores of articles, CopyRange.SpecialCells(xlCellTypeVisible).Copy followed by DestinationRange.PasteSpecial should only copy the visible rows. However it copies ALL the rows.

    All the work-around articles say, NO PROBLEM - just loop through EACH row of data.

    Is there a way to copy ONLY the visible rows as a range?

    Please Login or Register  to view this content.
    One spreadsheet to rule them all. One spreadsheet to find them. One spreadsheet to bring them all and at corporate, bind them.

    A picture is worth a thousand words, but a sample spreadsheet is more likely to be worked on.

  2. #2
    Forum Expert dflak's Avatar
    Join Date
    11-24-2015
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    7,920

    Re: SpecialCells xlCellTypeVisible . Copy copies all rows not just visible rows

    I found the solution. You must pastespecial xlpastevalues or it won't work.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. If SpecialCells(xlCellTypeVisible) have already data then warn
    By HaroonSid in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-17-2017, 12:32 PM
  2. SpecialCells(xlCellTypeVisible)
    By Wijnand1 in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 10-19-2016, 12:38 PM
  3. Macro copies rows based on condition, BUT rows copy in Wrong order. PLEASE HELP!
    By JAllard1990 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-16-2014, 04:33 PM
  4. Use visible rows from autofilter to build Pivot table. Or use visible rows to Copy/Paste
    By mwhitedesigns in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-08-2012, 10:34 AM
  5. [SOLVED] SpecialCells(xlCellTypeVisible) Not Returning Visible Cells Resulting from AutoFilter
    By Filibuster in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 07-30-2012, 05:48 AM
  6. Count only SpecialCells(xlCellTypeVisible) with a certain .Value
    By jordan2322 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-21-2012, 10:19 PM
  7. HIde rows based on SpecialCells(xlCellTypeVisible) in row above with autofilter on
    By bradmcq in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-22-2010, 07:01 PM

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