updating a separate workbook via VBA?

AceFI

Board Regular
Joined
Apr 20, 2012
Messages
93
hi all.

i'm trying to work with live data updates on onedrive.. but can't seem to get things to work seamlessly, so i'm toying with the following;

Sub TESTOPEN()
Application.ScreenUpdating = False
Dim wb As Workbook, sh As Worksheet
Set wb = Workbooks.Open("MYFILE")
wb.RefreshAll
wb.Save
'wb.Close
Application.ScreenUpdating = True
End Sub

it seems to work, however its not 'saving' correctly... if i open the destination file in excel, it is updated.. if i open it online through a onedrive link it isn't updated... then if i manually open and save, it then updates..

any ideas?

thanks,
 

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.

Forum statistics

Threads
1,224,820
Messages
6,181,160
Members
453,021
Latest member
Justyna P

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
Back
Top