Clearing Cache VBA

Dbarton0231

New Member
Joined
Mar 3, 2021
Messages
1
Office Version
  1. 2016
Platform
  1. Windows
I have several workbooks that I update each morning and load to SharePoint for multiple users to view. Recently, there has been an issue with the workbooks not displaying the updates that were loaded. Having the user clear their cache resolves the issue. My question is, is there any VBA that can run upon opening the workbook that will automatically clear the users cache? Or at the very least some VBA that can be executed on demand by the user if they are not seeing updated information in the workbooks?
 

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop

Anthony47

Well-known Member
Joined
Mar 29, 2006
Messages
2,147
The only thing that come to my mind is clearing all the variable whose scope extends outside a specific macro; this includes those variables that are declared on top of vba modules, before any Sub or Function
To clear a variable:
VBA Code:
VarName = Empty

Let's see if someone else has more insights

Bye
 

ZVI

MrExcel MVP
Joined
Apr 9, 2008
Messages
3,817
Office Version
  1. 2016
  2. 2010
  3. 2007
Platform
  1. Windows
To clear brouser's cache try this code before downloading workbook from SharePoint site:
VBA Code:
Sub ClearCache()
  CreateObject("wscript.shell").Run "RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 255", 0, True
End Sub
 

Watch MrExcel Video

Forum statistics

Threads
1,129,491
Messages
5,636,633
Members
416,932
Latest member
mm07

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Top