+ Reply to Thread
Results 1 to 5 of 5

Resetting Spreadsheet Data Entry Cells

  1. #1
    Registered User
    Join Date
    02-11-2007
    Posts
    6

    Resetting Spreadsheet Data Entry Cells

    Hi there,

    I have a pretty big spreadsheet where data is entered everyday over a four-week period on 28 tabs (one tab for each day in a four-week period). The data is entered into the same cells on each tab. I would like to build some way of erasing all of the data that has been entered over the four weeks so that the spreadsheet can be 'started over' every four-weeks. Tried to record a macro of selecting all of the tabs then all of the cells and clearing them but the macro never seems to run. It gets hung up on the "Sheets(Array("1", "2" . . . " line. Any idea what I'm doing incorrectly? (Most of Code is below. Wouldn't fit it all in post).

    Please Login or Register  to view this content.
    Last edited by royUK; 11-21-2007 at 12:48 PM.

  2. #2
    Registered User
    Join Date
    02-11-2007
    Posts
    6

    Sorry

    I apologize. Am new to code and forum. I will try to paste the code below in the 'code' tag which as far as I can understand what I did incorrectly the first time. Here goes:

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    02-11-2007
    Posts
    6

    Re: Sorry

    Was that right?

  4. #4
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200
    acg

    Are you sure that you need all those tabs? Depending on the data it is more efficient to enter all data in one sheet then use a PivotTable on that data. However, if yo really need to do it your way why not simply set up a workbook as you want t then save it as a Template (*.xlt)?

    Alternatively, protect all cells that you want to keep and protect the sheets then simply clear the unlocked cells

    Please Login or Register  to view this content.
    Last edited by royUK; 11-21-2007 at 12:55 PM.
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  5. #5
    Registered User
    Join Date
    02-11-2007
    Posts
    6

    Thanks

    Thanks Roy . . . the 'clear all unprotected cells' idea is what I actually needed. Seems to take a long time to run (around 30 minutes . . is that normal?). THanks much for the code!

+ 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