+ Reply to Thread
Results 1 to 2 of 2

Thread: Deleting blank cells in a column

  1. #1
    bodhisatvaofboogie
    Guest

    Deleting blank cells in a column

    I am wanting to select all blank cells in this column, delete the blank cell,
    then have the numbers in the colums to the right of them shift over in their
    place. Is this possible with a code in a macro??? THANKS!!!

  2. #2
    Jim Thomlinson
    Guest

    RE: Deleting blank cells in a column

    Give this code a try. Change the range to whatever column you need...

    Sub DeleteBlanks()
    Dim rngToDelete As Range

    On Error Resume Next
    Set rngToDelete = Range("A:A").SpecialCells(xlCellTypeBlanks)
    On Error GoTo 0

    If rngToDelete Is Nothing Then
    MsgBox "Nothin to Delete..."
    Else
    rngToDelete.Delete xlToLeft
    End If
    End Sub
    --
    HTH...

    Jim Thomlinson


    "bodhisatvaofboogie" wrote:

    > I am wanting to select all blank cells in this column, delete the blank cell,
    > then have the numbers in the colums to the right of them shift over in their
    > place. Is this possible with a code in a macro??? THANKS!!!


+ Reply to Thread

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.2.0