+ Reply to Thread
Results 1 to 2 of 2

How do I edit this code to make it update automatically?

  1. #1
    Registered User
    Join Date
    02-06-2014
    Location
    London,England
    MS-Off Ver
    Excel 2010
    Posts
    25

    How do I edit this code to make it update automatically?

    Hi all, we have a document that is updated when you click a button. I would like it to update every hour, is there a way I can edit the below code to do so? (The code is from the button you press to re-fresh the data).

    Sub Refresh()

    Application.ScreenUpdating = False


    Call Download_Spool_List

    If Sheets("Sel").Range("B12").Value = 1 Then
    Call Data_Sheet_Format
    Call Data_Sheet_Update
    Call Update_Data
    Sheets("Sel").Range("B4").ClearContents
    Sheets("Sel").Range("B5").ClearContents
    End If
    Sheets("Sel").Range("B12").Value = 0
    Sheets("Rate Sheets").Select
    Range("C2").Select


    ActiveWorkbook.Save
    Sheets("Front Sheet").Select
    Range("D8").Formula = "=Today()"
    Range("D8") = Range("D8").Value


    End Sub


    Thanks in advance. Matt

  2. #2
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: How do I edit this code to make it update automatically?

    Welcome to the forum.

    We'd like to help you but first..

    Pls take some minutes to read forum rules and specially-in this case- rule#3 and add code tags around your code.
    Then anyone will be able to help you.
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

+ 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. how to make a matrix formula automatically update?
    By Celeste84 in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 11-14-2013, 03:58 AM
  2. [SOLVED] Update sheet code automatically
    By matrixpom in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 12-09-2012, 07:06 PM
  3. [SOLVED] Sheet Code To Update Automatically
    By matrixpom in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-15-2012, 09:28 PM
  4. VLOOKUP Personal.xls - how to make values update automatically
    By maff in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 10-18-2008, 03:23 PM
  5. [SOLVED] Edit Links: make update manual
    By Chrissorr in forum Excel General
    Replies: 5
    Last Post: 05-11-2005, 07:06 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