How to Refresh IMAGE Function Results Automatically in Excel
Question details
The user needs a method to automatically and efficiently refresh images loaded from web URLs via the Excel IMAGE function when the source image changes.

- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- Managing a list of image URLs where the source web images are updated periodically, but the spreadsheet continues to display the old, cached images.
- Observed behavior
- The IMAGE function caches the downloaded image and does not automatically refresh or fetch the new image when the source file on the web is modified.
Ensure you have an active internet connection to fetch the new images, and verify that the host server of the source URLs supports URL query parameters if you plan to use dynamic timestamps.
Append a Dynamic Timestamp to the Image URL
This method forces Excel to recognize the URL as entirely new by appending a dynamic query value, bypassing the cache and downloading the latest image.
Excel caches images to improve performance. By adding a constantly changing value (like the current time) to the end of the URL, you force the software to retrieve a fresh copy of the image every time the workbook recalculates.
Click on the cell containing your existing IMAGE function.
Append a dynamic query string to the end of the web URL using the NOW() function. For example, change =IMAGE("https://example.com/pic.png") to =IMAGE("https://example.com/pic.png?t=" & NOW()). If the URL already has a query string, use an ampersand instead: &t=" & NOW().
Press F9 on your keyboard to manually recalculate the workbook. The NOW() function will update the URL string with the current time, forcing the image to reload automatically.

Use a VBA Macro for Bulk Refresh
Best for refreshing a large list of IMAGE formulas automatically without manually editing each cell.
Manually Toggle a Character in the URL
A quick, manual workaround for a single image that will not refresh.
Effortlessly Manage Dynamic Web Images in WPS Spreadsheet
WPS Spreadsheet provides a robust, seamless environment for managing dynamic web data and complex functions. It handles web-based images effortlessly and allows you to execute bulk updates using advanced formulas or VBA macros with incredible performance.
- 1. Open your workbook: Launch WPS Spreadsheet and open the file containing your image links.
- 2. Apply dynamic formulas: Use the NOW() or RAND() functions within your image formulas to automate data refreshing.
- 3. Enable macros for automation: Access the Developer tab to seamlessly run bulk update scripts and streamline your workflow.

Frequently Asked Questions
Why doesn't the Excel IMAGE function update automatically when the source changes?
To optimize performance and save bandwidth, the software caches web images locally. Unless the exact URL string inside the formula changes, the spreadsheet assumes the image is identical and continues to display the previously cached version.
Will appending a timestamp break my image URL?
In most cases, no. Adding a custom query string like '?t=[timestamp]' is generally ignored by image hosting servers. The server will deliver the requested image, but the spreadsheet will see a unique URL, successfully bypassing the local cache.
Can I refresh all IMAGE functions in my workbook without using VBA?
Yes, by integrating dynamic functions like NOW() into your IMAGE formulas, the URLs will automatically alter their timestamp query every time the worksheet recalculates (such as when you press F9 or enter new data), completely removing the need for VBA macros.




