updating links alert

  • Thread starter Thread starter Rod
  • Start date Start date
R

Rod

I have a link from one spreadsheet to another

I have the "Don't display the alert and update links" option chosen yet it
still displays an alert when I open the file.
This is annoying because I am using a VBA program from Access to open many
spreadsheets and change the link.
Any ideas on how to stop the alert?

many thanks

Rod
 
Rod,

In your Access VBA code, set the DisplayAlerts property of the excel
application to False before you open the workbooks. When you're done opening
the workbooks, set it back to true. For example:

Dim xlApp As New Excel.Application
Dim wb As Excel.Workbook

xlApp.DisplayAlerts = False
Set wb = xlApp.Workbooks.Open("C:\sample.xls")
xlApp.DisplayAlerts = True
 

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