Updating Links in Excel

  • Thread starter Thread starter Danny
  • Start date Start date
D

Danny

I have a spreadsheet which retrieves data from several
other spreadsheets. When i open this spreadsheet it asks
me would i like to update the links and i click Yes and my
data is now current.

Does anyone know the code for this update. I want a button
which will run the same script as when i click Yes on
entry to the spreadsheet to update the links.

Thanks,

Danny.
 
One way:

With ThisWorkbook
.UpdateLink Name:=.LinkSources
End With
 
I am very new to code. Do i need to enter some variables
as the code as it is does not seem to work?

The spreadsheet with the linked data in is called book1
and the source data is from book2.

Any ideas?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top