Results 1 to 2 of 2

Delete Cells With a Certain Value

Threaded View

  1. #1
    Registered User
    Join Date
    03-22-2010
    Location
    Philadelphia
    MS-Off Ver
    Excel 2007
    Posts
    3

    Delete Cells With a Certain Value

    I have a column with some cells which have a value of zero. I want to delete, not clear those cells that have a value of zero. Do I need to use a loop? I am very new to this, so this is all I have. Thanks for any help
    DeleleCells()
    Columns("G:H").Select
    
    If ActiveCell.Value = "0" Then
    ActiveCell.Delete Shift:=xlUp
    End If
    
    End Su
    b
    Last edited by Leith Ross; 03-23-2010 at 08:40 PM. Reason: Added Code Tags

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