+ Reply to Thread
Results 1 to 7 of 7

Clearcontents of all named ranges on a sheet

  1. #1
    Forum Expert
    Join Date
    09-01-2012
    Location
    Norway
    MS-Off Ver
    Office 365
    Posts
    2,844

    Clearcontents of all named ranges on a sheet

    The title says it all. How can I clear the contents of a all named ranges in a sheet?
    Hmm... I guess one way of doing it would be to define another range consisting of all the named ranges but I really don't need more named ranges in this application.
    <----- If you were helped by my posts you can say "Thank you" by clicking the star symbol down to the left

    If the problem is solved, finish of the thread by clicking SOLVED under Thread Tools
    I don't wish to leave you with no answer, yet I sometimes miss posts. If you feel I forgot you, remind me with a PM or just bump the thread.

  2. #2
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,147

    Re: Clearcontents of all named ranges on a sheet

    hi Jacc. not my code, but i simply edited it to suit your needs:

    Please Login or Register  to view this content.
    source:
    http://www.excelforum.com/excel-prog...-contents.html

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  3. #3
    Registered User
    Join Date
    11-26-2012
    Location
    Kitchener, Ontario, Canada
    MS-Off Ver
    Excel 2010
    Posts
    82

    Re: Clearcontents of all named ranges on a sheet

    Do you mean like this
    Please Login or Register  to view this content.
    aelgadi

    > Click Star if I helped. Thanks

  4. #4
    Registered User
    Join Date
    11-26-2012
    Location
    Kitchener, Ontario, Canada
    MS-Off Ver
    Excel 2010
    Posts
    82

    Re: Clearcontents of all named ranges on a sheet

    Sorr I didn't see benishiryo post is kind of same
    Last edited by aelgadi; 12-07-2012 at 10:54 AM. Reason: Spelling

  5. #5
    Forum Expert
    Join Date
    09-01-2012
    Location
    Norway
    MS-Off Ver
    Office 365
    Posts
    2,844

    Re: Clearcontents of all named ranges on a sheet

    Thanks for the response, guys!
    It's not quite what I need. I need it to clear contents of all names referring to a certain sheet, not all names in the entire workbook. I am pretty sure all the names on that sheet are local.

  6. #6
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,147

    Re: Clearcontents of all named ranges on a sheet

    like this?

    Please Login or Register  to view this content.
    change the name in red accordingly

  7. #7
    Forum Expert
    Join Date
    09-01-2012
    Location
    Norway
    MS-Off Ver
    Office 365
    Posts
    2,844

    Re: Clearcontents of all named ranges on a sheet

    Yes, that's it, thanks!

    Turns out it didn't work anyway because there are a quite a few merged cells.
    Yes, I know that you are supposed to stay away from merged cells and I think I can get rid of most of them.
    Well, that's a task for tomorrow. Thanks for the input!

+ 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