+ Reply to Thread
Results 1 to 5 of 5

How to select empty cells in a column?

  1. #1
    Forum Contributor
    Join Date
    08-08-2006
    Posts
    203

    How to select empty cells in a column?

    I want to select all empty cells in column A of my spreadsheet. Is there a way to write a macro to select only empty cells?

    Thank you

  2. #2
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Why don't you use a Filter

    Select Col A > Data > Auto Filter > Blanks

    Then use a custom view to call the view

    VBA Noob
    _________________________________________


    Credo Elvem ipsum etian vivere
    _________________________________________
    A message for cross posters

    Please remember to wrap code.

    Forum Rules

    Please add to your signature if you found this link helpful. Excel links !!!

  3. #3
    Forum Expert dominicb's Avatar
    Join Date
    01-25-2005
    Location
    Lancashire, England
    MS-Off Ver
    MS Office 2000, 2003, 2007 & 2016 365
    Posts
    4,867

    Smile

    Good evening iturnrocks

    ...or alternatively, highlight the whole column, and go to Edit > Go To, Special and select blanks and click OK.

    You could record a macro of that yourself - it would give you something in the order of :
    Please Login or Register  to view this content.
    HTH

    DominicB
    Please familiarise yourself with the rules before posting. You can find them here.

  4. #4
    Forum Contributor
    Join Date
    08-08-2006
    Posts
    203
    Quote Originally Posted by dominicb
    Good evening iturnrocks

    ...or alternatively, highlight the whole column, and go to Edit > Go To, Special and select blanks and click OK.

    You could record a macro of that yourself - it would give you something in the order of :
    Please Login or Register  to view this content.
    HTH

    DominicB
    That works, Thanks.

    Just took me a while to find Goto cuz I have 2007. Its under Find/Select on Home Tab.

  5. #5
    Forum Contributor
    Join Date
    08-08-2006
    Posts
    203
    Quote Originally Posted by VBA Noob
    Why don't you use a Filter

    Select Col A > Data > Auto Filter > Blanks

    Then use a custom view to call the view

    VBA Noob
    My intent was to select empty cells then delete/ shift left. I may have been doing it wrong, but I was unable to do it with autofilter. But I will certainly find a use for autofilter in the future.

    Thank you

+ 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.6.0 RC 1