ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Statement not to update the file while opening through Macro (https://www.excelbanter.com/excel-programming/388101-statement-not-update-file-while-opening-through-macro.html)

Gautam[_3_]

Statement not to update the file while opening through Macro
 
I am opening various workbooks one after the other inorder to get some
information in it, through a macro. Now everytime the workbook is
opened, it asks for updating of links and stops there. I need a
statement which automatically replys the excel not to update the
files, in the existing macro.

Thanks


Norman Jones

Statement not to update the file while opening through Macro
 
Hi Gautam,

Look as the UpdateLinks argument to the Workbook
Open method.

Try something like:

'=============
Public Sub Tester()
Dim WB As Workbook

Set WB = Workbooks.Open(Filename:="ABC.xls", _
UpdateLinks:=0)
End Sub
'<<=============


---
Regards,
Norman



"Gautam" wrote in message
oups.com...
I am opening various workbooks one after the other inorder to get some
information in it, through a macro. Now everytime the workbook is
opened, it asks for updating of links and stops there. I need a
statement which automatically replys the excel not to update the
files, in the existing macro.

Thanks





All times are GMT +1. The time now is 12:20 AM.

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