Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 19
Default updating links alert

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



  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 857
Default updating links alert

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




--
Hope that helps.

Vergel Adriano


"Rod" wrote:

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




  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 19
Default updating links alert

Didn't work but this did

xlApp.AskToUpdateLinks = false


thanks for the clue



"Vergel Adriano" wrote in message
...
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




--
Hope that helps.

Vergel Adriano


"Rod" wrote:

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






Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Updating Links Lambi000 Excel Discussion (Misc queries) 0 May 14th 08 03:00 PM
Updating links BMA Excel Discussion (Misc queries) 2 July 6th 07 12:46 PM
updating links dave glynn Excel Discussion (Misc queries) 1 March 2nd 06 08:28 PM
updating links from VB Alex[_13_] Excel Programming 1 February 28th 04 02:37 AM
Updating Links Edgar Thoemmes Excel Programming 1 February 16th 04 01:30 PM


All times are GMT +1. The time now is 06:45 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"