+ Reply to Thread
Results 1 to 4 of 4

Clear Contents of Named Range in Excel 2007

  1. #1
    Registered User
    Join Date
    10-17-2005
    Posts
    40

    Clear Contents of Named Range in Excel 2007

    I have a fairly large form which I want to have users fill out. While it is possible to have it Read Only so that they always SaveAs I would rather put in a macro to clear the user input fields. I have done this in Excel 2003 and when I try using the same techniques in 2007 I get an Error 400.

    I have all the cells (some are merged cells) in a named range and have the following code for clearing them.

    Please Login or Register  to view this content.
    I have tried to select the named range manually and right click and choose Clear Contents and it works so I am not sure what I am not doing right.

    Help is appreciated.
    Last edited by Warderbrad; 01-05-2009 at 08:44 AM.

  2. #2
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,564
    Try:
    Please Login or Register  to view this content.
    Ben Van Johnson

  3. #3
    Registered User
    Join Date
    10-17-2005
    Posts
    40
    thanks that worked great

  4. #4
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258
    Warderbrad,

    If you are satisfied with the solution(s) provided, please mark your thread as Solved.

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save

    Sincerely,
    Leith Ross

+ 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