+ Reply to Thread
Results 1 to 5 of 5

Automatically reset spreadsheet daily

  1. #1
    Registered User
    Join Date
    08-20-2015
    Location
    Bedford
    MS-Off Ver
    2010
    Posts
    12

    Automatically reset spreadsheet daily

    Hi there, so this is my first time on the forums, I'm currently creating a spreadsheet that needs to reset the values of specific cells to 0 on a daily basis.
    I have created a module with the code below that is currently assigned to a button so I can manually reset
    Please Login or Register  to view this content.
    And I now need a code to activate that daily. I have searched around and found the below, which I have put into the workbook VBA and tried to test but it does not appear to be working.

    Please Login or Register  to view this content.
    Would somebody be able to assist?

  2. #2
    Forum Expert
    Join Date
    10-09-2014
    Location
    Newcastle, England
    MS-Off Ver
    2003 & 2013
    Posts
    1,986

    Re: Automatically reset spreadsheet daily

    Application.OnTime only works if the spreadsheet is open at that time which therefore causes problems if people are in it and it changes or for that matter the fact it may not be changed when they 1st open it.

    To get around this Ive usually added an OnOpen event which checks a cell somewhere hidden away to see when it was last reset, if its not today then reset the values and amend the cell to show todays date before saving the sheet.
    If someone has helped you then please add to their Reputation

  3. #3
    Registered User
    Join Date
    08-20-2015
    Location
    Bedford
    MS-Off Ver
    2010
    Posts
    12

    Re: Automatically reset spreadsheet daily

    This is for a work tracker spreadsheet, so some people will be leaving the spreadsheet open with the computer locked and others shut the computer down. I need it to reset before work each morning (so it can reset anywhere from 6pm to 7am really, nobody will be on the sheet at the time) but as different people will be in different states, is there a way to fix it?

  4. #4
    Registered User
    Join Date
    08-20-2015
    Location
    Bedford
    MS-Off Ver
    2010
    Posts
    12

    Re: Automatically reset spreadsheet daily

    Additionally, even with leaving the spreadsheet open it does not run the 'reset' function and I'm not quite sure why

  5. #5
    Registered User
    Join Date
    08-20-2015
    Location
    Bedford
    MS-Off Ver
    2010
    Posts
    12

    Re: Automatically reset spreadsheet daily

    Figured it out - needed the below code in my module rather than what I had
    Please Login or Register  to view this content.

+ 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. scroll bar to automatically reset- vba?
    By davehow87 in forum Excel General
    Replies: 3
    Last Post: 08-13-2014, 05:55 AM
  2. Macro to reset SpreadSheet
    By mort.marshall.20 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 11-19-2013, 10:10 AM
  3. Reset Spreadsheet Help
    By Cas39 in forum Excel General
    Replies: 5
    Last Post: 08-10-2013, 07:28 AM
  4. Reset parts of worksheet automatically, but not others
    By MDCK in forum Excel Programming / VBA / Macros
    Replies: 20
    Last Post: 12-11-2008, 06:16 PM
  5. 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
  6. YTD tally of multiple values that are reset daily.
    By jrwalt in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-24-2008, 07:07 PM
  7. [SOLVED] Unable To Reset Extents Of Spreadsheet
    By SteveG in forum Excel General
    Replies: 1
    Last Post: 03-07-2006, 08:20 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