ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Application.Displayalerts wont get me past this! (https://www.excelbanter.com/excel-programming/295214-application-displayalerts-wont-get-me-past.html)

andycharger[_27_]

Application.Displayalerts wont get me past this!
 
I have a spreadsheet that needs a user input.


It says
"This workbook contains links to other data sources

If you update this, Excel attempts to retrieve the latest data.
If you dont update, excel uses the existing data"

There are 3 buttons, Update, Dont Update and Cancel.

I want it to just press the Update option as its highlighted and carr
on but application.Displayalerts = False does not get it past it.

Any ideas

--
Message posted from http://www.ExcelForum.com


Jim Rech

Application.Displayalerts wont get me past this!
 
It's always great if posters mention their Excel version. If you have Excel
2002 or 2003 the Edit, Links dialog has a "Startup Prompt" button where you
can tailor the prompt, including not having one (which is heaven in my
book).

--
Jim Rech
Excel MVP
"andycharger " wrote in message
...
|I have a spreadsheet that needs a user input.
|
|
| It says
| "This workbook contains links to other data sources
|
| If you update this, Excel attempts to retrieve the latest data.
| If you dont update, excel uses the existing data"
|
| There are 3 buttons, Update, Dont Update and Cancel.
|
| I want it to just press the Update option as its highlighted and carry
| on but application.Displayalerts = False does not get it past it.
|
| Any ideas?
|
|
| ---
| Message posted from http://www.ExcelForum.com/
|



Jake Marx[_3_]

Application.Displayalerts wont get me past this!
 
Hi Andy,

It sounds like you're opening the workbook via code. If that's the case,
you can use the UpdateLinks argument to the Open method. So if you want to
update links automatically, you can do this:

Workbooks.Open Filename:="c:\test.xls", UpdateLinks:=3

--
Regards,

Jake Marx
MS MVP - Excel
www.longhead.com

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


I have a spreadsheet that needs a user input.


It says
"This workbook contains links to other data sources

If you update this, Excel attempts to retrieve the latest data.
If you dont update, excel uses the existing data"

There are 3 buttons, Update, Dont Update and Cancel.

I want it to just press the Update option as its highlighted and carry
on but application.Displayalerts = False does not get it past it.

Any ideas?


---
Message posted from http://www.ExcelForum.com/




All times are GMT +1. The time now is 09:26 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com