Closed Thread
Results 1 to 3 of 3

Clear Contents below a dynamic Range

  1. #1
    Registered User
    Join Date
    11-24-2015
    Location
    Australia
    MS-Off Ver
    2013
    Posts
    5

    Clear Contents below a dynamic Range

    Hi everyone

    hopefully this is a simple one but my limited VBA experience has me stumped. I want to clear the contents of columns a and b when a is blank. Below is the table of sample data i want to clear cells a4:b7, however this range need to be dynamic based off if column A is blank and b contains something.
    DYNAMIC RANGE.JPG

  2. #2
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MO Prof Plus 2016
    Posts
    6,907

    Re: Clear Contents below a dynamic Range

    How about this.

    Please Login or Register  to view this content.
    Avoid using Select, Selection and Activate in your code. Use With ... End With instead.
    You can show your appreciation for those that have helped you by clicking the * at the bottom left of any of their posts.

  3. #3
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,830

    Re: Clear Contents below a dynamic Range

    Administrative Note:

    Welcome to the forum.

    Unfortunately, this is a duplicate thread, and you are allowed only ONE thread per issue here. I am, therefore, closing this thread, but you may continue here in the original thread: https://www.excelforum.com/excel-pro...mic-range.html
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

Closed Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Clear Contents below a dynamic Range
    By Keewi82 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 03-18-2019, 09:35 PM
  2. Clear Contents of a range of cells
    By JESSIER4025 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 09-21-2017, 03:59 PM
  3. [SOLVED] Clear contents of range
    By Groovicles in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-25-2016, 01:15 PM
  4. Clear contents in dynamic range
    By DCRAIG3389 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-23-2015, 10:49 AM
  5. [SOLVED] If each cell in range equals 0 then clear contents of range and move to the next row
    By dagardner in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-19-2014, 08:44 PM
  6. [SOLVED] Clear Range Contents
    By kenadams378 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-23-2013, 07:06 AM
  7. [SOLVED] clear contents of range
    By KATIEexcel in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-14-2012, 08:11 AM

Tags for this Thread

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