Hi,
I've taken a look around some of the previously posted solutions, but am having trouble understanding why my code will not work. I am four hours new to VBA, so please forgive me if this is all wrong. I am able to open the file and the data refresh, but I am unsure of whether its refreshing on its own or via the BBG command below and it will not save/close the file.
Any help would be greatly appreciated.
I've taken a look around some of the previously posted solutions, but am having trouble understanding why my code will not work. I am four hours new to VBA, so please forgive me if this is all wrong. I am able to open the file and the data refresh, but I am unsure of whether its refreshing on its own or via the BBG command below and it will not save/close the file.
Any help would be greatly appreciated.
Code:
Sub Testing1O()
'
' Testing1O Macro
Application.DisplayAlerts = False
Workbooks.Open Filename:="Path+File Name"
Application.Calculate
'recalculate open workbooks
End Sub
Sub refreshSheet()
Application.Run "RefreshAllWorkbooks"
Application.OnTime (Now + TimeValue("00:0:30")), "processSheet"
End Sub
Sub processSheet()
Application.Calculate
End Sub
Sub Testing11()
Savechanges = True
Application.DisplayAlerts = True
End Sub