Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11
Default DisplayAlerts (Which Ones?)

Notice in the code below, I am setting DisplayAlerts = False; however, on
opening the file (from Access) I still get a message that warns of extranal
links and asks if I want to update them? I don't, and I don't want my users
do so or it will corrupt data. I have not found a definitive discussion of
which alerts are not displayed and which are. Perhaps there is another way
to handle this. Assistance will be appreciated.

Set xlApp = New Excel.Application
xlApp.DisplayAlerts = False
xlApp.Interactive = False
Set xlBook = xlApp.Workbooks.Open(varGetFileName)
(message occurs upon execution of the above line)
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 860
Default DisplayAlerts (Which Ones?)

Hi Klatuu,

Klatuu wrote:
Notice in the code below, I am setting DisplayAlerts = False;
however, on opening the file (from Access) I still get a message that
warns of extranal links and asks if I want to update them? I don't,
and I don't want my users do so or it will corrupt data. I have not
found a definitive discussion of which alerts are not displayed and
which are. Perhaps there is another way to handle this. Assistance
will be appreciated.

Set xlApp = New Excel.Application
xlApp.DisplayAlerts = False
xlApp.Interactive = False
Set xlBook = xlApp.Workbooks.Open(varGetFileName)
(message occurs upon execution of the above line)


The second argument to the Open method is UpdateLinks. If you set this to
0, links will not be updated, and your users should not get prompted to
update links:

Set xlBook = xlApp.Workbooks.Open(varGetFileName, 0)

--
Regards,

Jake Marx
MS MVP - Excel
www.longhead.com

[please keep replies in the newsgroup - email address unmonitored]

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11
Default DisplayAlerts (Which Ones?)

That did it, thanks Jake.

"Jake Marx" wrote:

Hi Klatuu,

Klatuu wrote:
Notice in the code below, I am setting DisplayAlerts = False;
however, on opening the file (from Access) I still get a message that
warns of extranal links and asks if I want to update them? I don't,
and I don't want my users do so or it will corrupt data. I have not
found a definitive discussion of which alerts are not displayed and
which are. Perhaps there is another way to handle this. Assistance
will be appreciated.

Set xlApp = New Excel.Application
xlApp.DisplayAlerts = False
xlApp.Interactive = False
Set xlBook = xlApp.Workbooks.Open(varGetFileName)
(message occurs upon execution of the above line)


The second argument to the Open method is UpdateLinks. If you set this to
0, links will not be updated, and your users should not get prompted to
update links:

Set xlBook = xlApp.Workbooks.Open(varGetFileName, 0)

--
Regards,

Jake Marx
MS MVP - Excel
www.longhead.com

[please keep replies in the newsgroup - email address unmonitored]


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
DisplayAlerts Howard Kaikow Excel Programming 12 April 29th 05 04:24 PM
Displayalerts not working Hari[_3_] Excel Programming 11 January 14th 05 06:13 PM
DisplayAlerts Error justzach Excel Programming 3 July 27th 04 10:30 PM
Displayalerts and Screenupdating Hari[_3_] Excel Programming 4 June 12th 04 11:37 AM
Application.DisplayAlerts in IE scoobydeux Excel Programming 1 April 19th 04 01:28 AM


All times are GMT +1. The time now is 11:49 PM.

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

About Us

"It's about Microsoft Excel"