+ Reply to Thread
Results 1 to 4 of 4

Code to clear multiple contents

  1. #1
    Forum Contributor ABSTRAKTUS's Avatar
    Join Date
    04-18-2010
    Location
    England
    MS-Off Ver
    Win10 Excel 2016
    Posts
    609

    Code to clear multiple contents

    Hi all,

    I have a spreadsheet that is updated every morning. To do that user needs to delete the old data within ranges. The trouble is that there are ~150 contents to clear. Is there a code that clears multiple selections?

    Thanks in advance guys!
    Last edited by ABSTRAKTUS; 01-26-2012 at 11:18 AM.

  2. #2
    Forum Expert tigeravatar's Avatar
    Join Date
    03-25-2011
    Location
    Colorado, USA
    MS-Off Ver
    Excel 2003 - 2013
    Posts
    5,361

    Re: Code to clear multiple contents

    ABSTRAKTUS,

    As an example, if you needed to clear A2:B3, D5:E6, and F8:H12, you could use:
    Please Login or Register  to view this content.
    Hope that helps,
    ~tigeravatar

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  3. #3
    Forum Contributor ABSTRAKTUS's Avatar
    Join Date
    04-18-2010
    Location
    England
    MS-Off Ver
    Win10 Excel 2016
    Posts
    609

    Re: Code to clear multiple contents

    Was it that easy??? Thanks mate! Do you know how many ranges XL 2003 would accept or is it unlimited?

  4. #4
    Forum Expert tigeravatar's Avatar
    Join Date
    03-25-2011
    Location
    Colorado, USA
    MS-Off Ver
    Excel 2003 - 2013
    Posts
    5,361

    Re: Code to clear multiple contents

    I know there is a max, but don't know what the max is, sorry

+ 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