+ Reply to Thread
Results 1 to 2 of 2

Filter for blanks

Hybrid View

  1. #1
    Registered User
    Join Date
    06-16-2014
    Location
    TX
    MS-Off Ver
    2010
    Posts
    27

    Filter for blanks

    Hi

    I would like to filter column D for cell that are blank .

    Then Once is filtered I would like to copy column B to Column A

    Any advise would be greatly apreociated

    Try1.xlsx

  2. #2
    Forum Expert
    Join Date
    07-31-2010
    Location
    California
    MS-Off Ver
    Excel 2007
    Posts
    4,070

    Re: Filter for blanks

    Sub Filter_Blanks()
    Dim ws As Worksheet:    Set ws = Sheets("MB52")
    Dim c As Range
    
    Application.ScreenUpdating = False
    
    With ws
        .AutoFilterMode = False
        .Range("D1:D" & .Range("D" & Rows.Count).End(xlUp).Row).AutoFilter 1, ""
        For Each c In .Range("B2:B" & .Range("B" & Rows.Count).End(xlUp).Row).SpecialCells(xlCellTypeVisible)
            c.Offset(, -1) = c
        Next c
        .AutoFilterMode = False
    End With
    
    Application.ScreenUpdating = True
    
    End Sub

+ 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 with blanks
    By HaroonSid in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 04-22-2014, 11:53 AM
  2. Filter column by non-blanks
    By ABSTRAKTUS in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-02-2011, 04:00 PM
  3. Filter Formula & Include Blanks...
    By henrythompson in forum Excel General
    Replies: 2
    Last Post: 04-21-2008, 11:28 AM
  4. Filter Formula & Include Blanks
    By henrythompson in forum Excel General
    Replies: 1
    Last Post: 03-25-2008, 10:05 AM
  5. [SOLVED] Filter for blanks - nonblanks problem
    By Paul in forum Excel General
    Replies: 1
    Last Post: 05-09-2006, 04:02 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