+ Reply to Thread
Results 1 to 12 of 12

Find first blank cell in first column of known range, select and delete from that point

  1. #1
    Registered User
    Join Date
    03-31-2014
    Location
    Toronto
    MS-Off Ver
    Excel 2010
    Posts
    40

    Post Find first blank cell in first column of known range, select and delete from that point

    Hello Everyone,

    This should be an easy one, but not for me Please refer to the attached screenshot for more info.

    Find Blank.PNG

    I have multiple tables like the one in the picture and have to duplicate this code for different known ranges.

    Any help would be great!

  2. #2
    Valued Forum Contributor
    Join Date
    09-21-2011
    Location
    Birmingham UK
    MS-Off Ver
    Excel 2003/7/10
    Posts
    2,188

    Re: Find first blank cell in first column of known range, select and delete from that poin

    Please Login or Register  to view this content.
    Hope this helps

    Sometimes its best to start at the beginning and learn VBA & Excel.

    Please dont ask me to do your work for you, I learnt from Reading books, Recording, F1 and Google and like having all of this knowledge in my head for the next time i wish to do it, or wish to tweak it.
    Available for remote consultancy work PM me

  3. #3
    Registered User
    Join Date
    03-31-2014
    Location
    Toronto
    MS-Off Ver
    Excel 2010
    Posts
    40

    Re: Find first blank cell in first column of known range, select and delete from that poin

    Thanks for the reply nathansav!

    I changed your code slighty to this:

    Please Login or Register  to view this content.
    I Don't want the blank cells to be removed, just clear the contents. I also need it to select from the blank cell at A13 to D18 and not just delete the A column data. This selection won't be the same in all cases, but the destination cell in the selection would always be known.

    Ex. select from first blank cell in the range A8:A18, blank cell ="x"

    Range ("X:D18").Select
    Selection.ClearContents

  4. #4
    Registered User
    Join Date
    03-31-2014
    Location
    Toronto
    MS-Off Ver
    Excel 2010
    Posts
    40

    Re: Find first blank cell in first column of known range, select and delete from that poin

    Does anybody have any ideas on how to do this?

  5. #5
    Registered User
    Join Date
    03-31-2014
    Location
    Toronto
    MS-Off Ver
    Excel 2010
    Posts
    40

    Re: Find first blank cell in first column of known range, select and delete from that poin

    sorry to keep asking, but I really need help with this problem. Any ideas?

  6. #6
    Valued Forum Contributor
    Join Date
    09-21-2011
    Location
    Birmingham UK
    MS-Off Ver
    Excel 2003/7/10
    Posts
    2,188

    Re: Find first blank cell in first column of known range, select and delete from that poin

    Sorry, i really dont understand what you want, you are saying that you want the blank cells cleared, there'll be nothing to clear

  7. #7
    Registered User
    Join Date
    03-31-2014
    Location
    Toronto
    MS-Off Ver
    Excel 2010
    Posts
    40

    Re: Find first blank cell in first column of known range, select and delete from that poin

    sorry, let me try and explain better. If you open the image I uploaded on my first post above, I need the code to find the first blank cell in the A column starting from A8 (red box), then select from that first blank cell to D18 and clearcontents (anything in the green box). So I want the formulas in the green box cleared, not he blank cells, but I would assume it would just be easier to select the whole range.

    Making any sense?

  8. #8
    Valued Forum Contributor
    Join Date
    09-21-2011
    Location
    Birmingham UK
    MS-Off Ver
    Excel 2003/7/10
    Posts
    2,188

    Re: Find first blank cell in first column of known range, select and delete from that poin

    Please Login or Register  to view this content.

    not in excel so untested.

  9. #9
    Registered User
    Join Date
    03-31-2014
    Location
    Toronto
    MS-Off Ver
    Excel 2010
    Posts
    40

    Re: Find first blank cell in first column of known range, select and delete from that poin

    Thanks for the reply nathan, in excel I get a "type mismatch" error on

    Please Login or Register  to view this content.
    Any thoughts?

  10. #10
    Valued Forum Contributor
    Join Date
    09-21-2011
    Location
    Birmingham UK
    MS-Off Ver
    Excel 2003/7/10
    Posts
    2,188

    Re: Find first blank cell in first column of known range, select and delete from that poin

    try r.text

  11. #11
    Registered User
    Join Date
    03-31-2014
    Location
    Toronto
    MS-Off Ver
    Excel 2010
    Posts
    40

    Re: Find first blank cell in first column of known range, select and delete from that poin

    No errors this time. Seems to run, but nothing happens (ie. nothing is cleared).

  12. #12
    Valued Forum Contributor
    Join Date
    09-21-2011
    Location
    Birmingham UK
    MS-Off Ver
    Excel 2003/7/10
    Posts
    2,188

    Re: Find first blank cell in first column of known range, select and delete from that poin

    Have a play then

+ 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. Find & select 1st blank cell in a range of formulated column cells
    By jnbroek in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-19-2013, 09:26 AM
  2. [SOLVED] Trying to find a value in a column, then select a range in that row to delete VBA
    By miltonsrevenge in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-06-2012, 03:01 AM
  3. [SOLVED] VBA Find last row and column that contain data and delete all blank rows and blank columns
    By bcn1988 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 12-03-2012, 01:07 PM
  4. Replies: 2
    Last Post: 06-25-2010, 12:11 AM
  5. [SOLVED] Find first blank cell in single column named range
    By tig in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 02-09-2006, 01:40 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