Results 1 to 3 of 3

Filter and clear contents from visible cells in a single column

Threaded View

  1. #1
    Valued Forum Contributor
    Join Date
    03-23-2008
    Location
    Tennessee
    MS-Off Ver
    Office 2007
    Posts
    706

    Filter and clear contents from visible cells in a single column

    Good day, Gurus.

    How would I modify the code below to clear contents of visible cells in column AJ (field 36) instead of deleting the visible rows.

    Range("A19").AutoFilter Field:=1, Criteria1:="YYY"
    Set tbl = Range("A1").CurrentRegion
    tbl.Offset(1, 0).Resize(tbl.Rows.Count, _
        tbl.Columns.Count).Delete
    ActiveSheet.AutoFilterMode = False
    Thanks in advance for any help you can offer.
    Last edited by [email protected]; 06-14-2016 at 11:17 PM.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 1
    Last Post: 10-14-2015, 05:06 PM
  2. Clear filter without losing clipboard contents
    By bensox in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-01-2015, 10:45 PM
  3. Replies: 3
    Last Post: 01-08-2013, 01:27 PM
  4. Replies: 0
    Last Post: 11-06-2012, 11:16 AM
  5. Replies: 2
    Last Post: 05-19-2012, 04:23 PM
  6. Clear Contents on Column
    By martinez_pedro in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-14-2012, 06:40 AM
  7. Macro to Clear All from Non Visible Cells
    By teynon in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-27-2009, 06:09 AM

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