+ Reply to Thread
Results 1 to 6 of 6

Reset Spreadsheet Help

  1. #1
    Registered User
    Join Date
    08-10-2013
    Location
    Scotland
    MS-Off Ver
    Excel 2007
    Posts
    3

    Reset Spreadsheet Help

    Hi,

    I have made a form using Excel 2007 and I am nearing completion. However, I have a couple of issues I need to resolve before the task is completed. The issue I am trying to resolve at the moment is as follow:

    1. I have my form completed and saved with none of the fields completed.
    2. When someone uses the form they are going to fill in certain fields and make changes to the spreadsheet.
    3. After they do this I want to create a button that resets the form back to its initial state.

    Therefore, I was wondering how I go about creating a button [or alternative method] that resets the spreadsheet back to its initial state.

    I also want to prevent people from saving the spreadsheet or making changes to certain cells.

    Any help or advise would be greatly appreciated.

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,938

    Re: Reset Spreadsheet Help

    Hi and welcome to the forum

    To prevent people from saving the workbook, save it with a password set to "modify"
    select Save As
    click on the TOOLS in the bottom left of the window
    select General Options
    enter a password in the "modify" option.

    saving it this way, people can open it and play around to their hearts content - they can even change/delete/add whatever they want, but they cannot save it. Not sure if this will help with 3. or not?
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Registered User
    Join Date
    08-10-2013
    Location
    Scotland
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Reset Spreadsheet Help

    Hi FDibbins,

    First of all I would like to thank you for taking time to help me.

    I have done what you advised and while it has solved the problem of stopping people from saving over the master document people will still be able to write over some of the formulas and for that reason I was wondering if there is a way to protect individual cells from being written to.

    I also still need a way to reset as the form will be continually used and I don't want people to have to close and reopen after they complete every form.

  4. #4
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Reset Spreadsheet Help

    I think you're overlooking the purpose of an Excel Template (i.e. either the .xltx or .xltm) file extension types.
    The purpose of templates is to do exactly what I think you want. Create the workbook in the usual way and save it as a template.

    When users open the template they can then make any changes that are permitted, i.e. subject to the usual password protection and locked cells functionality. When you choose to protect a sheet (with a password if necessary) all cells are locked by default. Before protecting the sheet unlock any cells that the user is allowed to change by unticking the Locked status in the cell format functionality.

    However the important point is that when the user saves the file the original template is NOT overwritten. The file is saved as a standard .xlsx (or .xlsm) file.
    Last edited by Richard Buttrey; 08-10-2013 at 08:04 AM.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  5. #5
    Valued Forum Contributor
    Join Date
    05-11-2013
    Location
    Wales
    MS-Off Ver
    Excel 2010
    Posts
    586

    Re: Reset Spreadsheet Help

    Hi Cas,

    With regard to point 3, I have shown below the code I used recently to clear the information from selected cells (included in the code) in a pricing spreadsheet:-

    [Private Sub CommandButton2_Click()
    '
    Range("T2,T4,T6,P10:P28,C10:C28,G10:G28,I10:I28,K10:K28,M10:M28,E30,G30,I30,K30,C36:C45,G36:G45,K36:K45").Select
    Selection.ClearContents

    End Sub]

    You will need to save this in VBA and link it to a Command Button.

    It would be easier if you attach a copy of the spreadsheet (with sensitive information removed or changed) and I can add the above for you.

    Regards

    peterrc

  6. #6
    Registered User
    Join Date
    08-10-2013
    Location
    Scotland
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Reset Spreadsheet Help

    Hi,

    Again thanks to everyone who has taken time to offer assistance with my issues, it is greatly appreciated.

    I have had a quick look through the responses and I believe I should be able to resolve my issues with the advice given. Unfortunately I have a busy schedule today but I will read up on some of the things suggested later and try to get my spreadsheet working as intended. I will post back later and let you know how I got on.

    Cheers

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. AutoFilter permissions reset each time macro enabled spreadsheet is closed
    By Jese3600 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-30-2012, 11:46 AM
  2. How to Reset a Spreadsheet with a macro
    By Alexander_Read in forum Excel Programming / VBA / Macros
    Replies: 20
    Last Post: 09-26-2008, 07:17 AM
  3. [SOLVED] Unable To Reset Extents Of Spreadsheet
    By SteveG in forum Excel General
    Replies: 1
    Last Post: 03-07-2006, 08:20 PM
  4. reset to zero
    By baldyheed in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-01-2005, 11:05 PM
  5. reset me
    By cacique in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-07-2005, 10:05 PM

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