How to Refresh Excel Sheet Automatically (3 Suitable Methods)

Method 1 – Apply a Keyboard Shortcut to Refresh a Sheet Automatically

We have a dataset of some random numbers in a workbook.

Keyboard Shortcut to Refresh Excel Sheet Automatically

We have applied the RANDBETWEEN function to make some random numbers.

Keyboard Shortcut to Refresh Excel Sheet Automatically

Steps:

  • While in the sheet, press F9.

  • The data has refreshed.


Method 2 – Use Connection Properties to Refresh an Excel Sheet at Regular Intervals

We have a dataset in a workbook. We will open a new workbook and connect the properties with the new workbook so that it refreshes automatically with the changes.

Refresh Excel Sheet Automatically at Regular Intervals

Steps:

  • Open a new workbook.

  • Go to the Data tab and select Get Data.
  • Choose From File then select From Excel Workbook.

Refresh Excel Sheet Automatically at Regular Intervals

  • A new window will appear named Import Data.
  • Choose your previous workbook to connect.
  • Press Import.

Refresh Excel Sheet Automatically at Regular Intervals

  • In the Navigator window, choose the worksheet and click Load.

Refresh Excel Sheet Automatically at Regular Intervals

  • We have our data from the previous worksheet in the new workbook.
  • Go to Data and choose Connection Properties from the Refresh All option.

Refresh Excel Sheet Automatically at Regular Intervals

  • Check Refresh every and input a number inside the minutes section.
  • Hit the OK button.

  • Go back to the original dataset, select some data and press Delete.

Refresh Data at Regular Intervals

  • The selected data is deleted.

  • Open the new workbook and click Refresh All.

  • The dataset has been refreshed manually. If you don’t click Refresh All, the dataset will refresh automatically after the selected interval.

Refresh Excel Sheet Automatically at Regular Intervals


Method 3 – Run VBA Code to Refresh an Excel Sheet Automatically

Steps:

  • Press Alt + F11 to open the Microsoft Visual Basic Applications window.

VBA to Refresh Excel Sheet Automatically

  • Go to Insert and choose Module.

VBA to Refresh Excel Sheet Automatically

  • In the module section, apply the following code:
Sub Calculate_Range()
 Range("C1:C14").Calculate
 Application.OnTime DateAdd("s", 5, Now), "Calculate_Range"
End Sub
  • Hit the Run button.

  • The Excel sheet will refresh every 5 seconds.


Things to Remember

While refreshing data from another workbook, don’t close the Queries & Connections window.


Download the Practice Workbook


Related Article


Go Back to << Refresh Excel Sheet | Excel Worksheets | Learn Excel

Get FREE Advanced Excel Exercises with Solutions!
Wasim Akram
Wasim Akram

Wasim Akram holds a BSc degree in Industrial and Production Engineering from Ahsanullah University of Science and Technology. Over the past 2 years, he has been actively contributing to the ExcelDemy project, where he has authored more than 150 articles. Now, he is working as an Excel VBA and Content Developer. He likes learning new things about Microsoft Office, especially Excel VBA, Power Query, Data Analysis, and Excel Statistics. He is also very interested in machine learning and... Read Full Bio

2 Comments
  1. interesting, very clear and useful
    thank you

Leave a reply

Advanced Excel Exercises with Solutions PDF

 

 

ExcelDemy
Logo