Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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 |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
DisplayAlerts | Excel Programming | |||
Displayalerts not working | Excel Programming | |||
DisplayAlerts Error | Excel Programming | |||
Displayalerts and Screenupdating | Excel Programming | |||
Application.DisplayAlerts in IE | Excel Programming |