+ Reply to Thread
Results 1 to 5 of 5

Filter and Copy Visible cells based on condition

  1. #1
    Forum Contributor
    Join Date
    12-19-2012
    Location
    Bengaluru
    MS-Off Ver
    Excel 2013
    Posts
    108

    Filter and Copy Visible cells based on condition

    Hi all,

    Im using a macro to copy and paste visible cells after filtering the data into a new sheet. However, A blank sheet is also getting created as and when there is no data meeting the filtered criteria. I want the sheet to be created only when there is data existing in the master sheet.

    Below is the code im using and i don't know where im doing wrong.

    Any help is greatly appreciated. Thanks in advance

    Please Login or Register  to view this content.
    Click on the star * if some1 helped you.

  2. #2
    Forum Expert
    Join Date
    08-16-2015
    Location
    Antwerpen, Belgium
    MS-Off Ver
    2007-2016
    Posts
    2,380

    Re: Filter and Copy Visible cells based on condition

    Try

    Please Login or Register  to view this content.
    Kind regards
    Leo

  3. #3
    Forum Contributor
    Join Date
    12-19-2012
    Location
    Bengaluru
    MS-Off Ver
    Excel 2013
    Posts
    108

    Re: Filter and Copy Visible cells based on condition

    Hi Leo,

    Thanks for the response. this is working fine.

    Can you please let me know why the code posted by me is not working

    Thanks

  4. #4
    Forum Expert
    Join Date
    08-16-2015
    Location
    Antwerpen, Belgium
    MS-Off Ver
    2007-2016
    Posts
    2,380

    Re: Filter and Copy Visible cells based on condition

    No

    i think the SpecialCells(xlCellTypeVisible).Count don't work


    Kind regards
    Leo

  5. #5
    Forum Contributor
    Join Date
    12-19-2012
    Location
    Bengaluru
    MS-Off Ver
    Excel 2013
    Posts
    108

    Re: Filter and Copy Visible cells based on condition

    Thanks Leo.

+ 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. [SOLVED] Filter data and copy visible cells based on criteria
    By YasserKhalil in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 11-11-2015, 06:04 AM
  2. Replies: 1
    Last Post: 01-23-2015, 12:36 PM
  3. Advanced Filter Copy visible cells only
    By carsto in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-22-2015, 03:28 AM
  4. [SOLVED] Copy Filter Data and paste it on another workbook with special cells(Only Visible Cells)
    By HaroonSid in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 04-13-2014, 07:59 AM
  5. Copy visible cells from Row B paste to Row A in filter mode
    By lakshmipathi123 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-21-2012, 03:37 PM
  6. Looping through a Range,Filter and copy visible cells
    By realniceguy5000 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-31-2011, 02:14 PM
  7. Copy to Visible cells after filter
    By vandanavai in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-23-2009, 01:29 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