+ Reply to Thread
Results 1 to 8 of 8

Clear dynamic range empty cells

  1. #1
    Registered User
    Join Date
    08-01-2015
    Location
    HK
    MS-Off Ver
    2010
    Posts
    49

    Clear dynamic range empty cells

    I have a table generated from an ACC system. I have to clear the cell = "" but unable to set dynamic range starting from range("I7"). E.G sometimes from I7 to AA100, sometimes from I7 to R 150, etc.
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by missbb; 05-18-2020 at 10:28 AM.

  2. #2
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 2013
    Posts
    7,821

    Re: Clear dynamic range empty cells

    Please Login or Register  to view this content.
    This part of your code is a little confusing. If MyCell is blank, then there are no contents to clear. Please clarify. Also, what is the purpose of column N?
    You can say "THANK YOU" for help received by clicking the Star symbol at the bottom left of the helper's post.
    Practice makes perfect. I'm very far from perfect so I'm still practising.

  3. #3
    Registered User
    Join Date
    08-01-2015
    Location
    HK
    MS-Off Ver
    2010
    Posts
    49

    Re: Clear dynamic range empty cells

    Hi, e,g, when you use isblank(I9), it is false. There are many cells without value but is non-blank. So I need to clearconten. Column is for me to check no. of empty cell.

  4. #4
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 2013
    Posts
    7,821

    Re: Clear dynamic range empty cells

    What does I9 contain that gives you a "False" result?

  5. #5
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,097

    Re: Clear dynamic range empty cells

    How about
    Please Login or Register  to view this content.

  6. #6
    Registered User
    Join Date
    08-01-2015
    Location
    HK
    MS-Off Ver
    2010
    Posts
    49

    Re: Clear dynamic range empty cells

    Quote Originally Posted by Mumps1 View Post
    What does I9 contain that gives you a "False" result?
    I don't know because the file is generated from an accounting system.

  7. #7
    Registered User
    Join Date
    08-01-2015
    Location
    HK
    MS-Off Ver
    2010
    Posts
    49

    Re: Clear dynamic range empty cells

    Hi, Fluff13, it is perfect. thank you very much.

  8. #8
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,097

    Re: Clear dynamic range empty cells

    You're welcome & thanks for the feedback.

+ 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. [SOLVED] Copy and Paste only filled cells from a dynamic range to another sheet in empty cells
    By seanpcorbett1 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 09-12-2016, 03:23 PM
  2. [SOLVED] How to create a dynamic range if the last cell is empty and the columns have empty cells
    By peter_swe in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-03-2016, 11:18 PM
  3. Replies: 0
    Last Post: 08-03-2016, 07:01 PM
  4. [SOLVED] Colour fill of empty cells in a dynamic range
    By Coems in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 09-19-2014, 06:27 PM
  5. Dynamic Range for clear cells on change
    By Snickers65 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 10-29-2013, 06:28 PM
  6. Select dynamic range based on non-empty cells
    By oOarthurOo in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-07-2009, 01:42 PM
  7. [SOLVED] Clear cells range if certain cells are all empty
    By gschimek - ExcelForums.com in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 05-13-2005, 06:06 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