Hi,
I have the following code to open and update a spreadsheet, that is linked to another source. No changes are being made, just simply opening, updating links and saving.
This code functions, but doesn't update links, just opens, and saves...
What have i missed out?
Thanks in advance
I have the following code to open and update a spreadsheet, that is linked to another source. No changes are being made, just simply opening, updating links and saving.
Code:
Dim xl As Excel.Application
Dim wb As Excel.Workbook
Set xl = New Excel.Application
xl.DisplayAlerts = False
xl.Visible = False
Set wb = xl.Workbooks.Open("J:\Ops\QC\Transfer.xlsx", UpdateLinks:=1)
wb.Close savechanges = True
Set xl = Nothing
What have i missed out?
Thanks in advance