ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   cancel dialogue box automatically in program (https://www.excelbanter.com/excel-programming/292448-cancel-dialogue-box-automatically-program.html)

james

cancel dialogue box automatically in program
 
Dear all:
i am running a program to check each file in a fold. Each
time when the program opens a file, the excel shows a
dialogue box, which asks for whether updating link.
Would anyone provide some code which can automatically
cancel this box?

many thx

Best wishes,

james

Nikos Yannacopoulos[_5_]

cancel dialogue box automatically in program
 
James,

All it takes is another argument in the workbook.open statement:

Workbooks.Open "PathAndFileName", False

HTH,
Nikos

"james" wrote in message
...
Dear all:
i am running a program to check each file in a fold. Each
time when the program opens a file, the excel shows a
dialogue box, which asks for whether updating link.
Would anyone provide some code which can automatically
cancel this box?

many thx

Best wishes,

james





All times are GMT +1. The time now is 12:32 PM.

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