excel-requests icon indicating copy to clipboard operation
excel-requests copied to clipboard

How to refresh the data source?

Open casper opened this issue 7 years ago • 1 comments

Very useful add-in. Thanks for making it public.

One question. What's the best way to get Excel to refetch and refresh the HTTP data?

So far what I came up with is a VB macro like this:

  Application.Run("REQUESTS.FLUSH")

  ActiveSheet.EnableCalculation = False
  ActiveSheet.EnableCalculation = True
  
  ActiveSheet.Calculate

This works but seems very slow. Is there a better way to do this?

casper avatar May 05 '17 14:05 casper

I was also wondering the same. Unless I edited the cell, values never seemed to refresh. (even with manual calculation/F9)

Anyway thanks for the workaround casper I implemented it on a button.

Ethorsen avatar Jan 08 '18 21:01 Ethorsen