ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Telling excel to update or not to update (https://www.excelbanter.com/excel-programming/365365-telling-excel-update-not-update.html)

Chris

Telling excel to update or not to update
 
What code is needed to tell excel to update a file when opened and not to
update a file when opened?

Utkarsh

Telling excel to update or not to update
 
Not to update
Workbooks.Open ("Test.xls"), False

To update
Workbooks.Open ("Test.xls"), True

Utkarsh

Chris wrote:

What code is needed to tell excel to update a file when opened and not to
update a file when opened?



Chris

Telling excel to update or not to update
 
Where would this go in the code below?

Workbooks.Open filename:= _
"C:\Documents and Settings\cnether\My Documents\Development\Supplier
KPI Reports\Supplier KPI Collation.xls", ReadOnly:=False, Password:="",
WriteResPassword:="secure"

"Utkarsh" wrote:

Not to update
Workbooks.Open ("Test.xls"), False

To update
Workbooks.Open ("Test.xls"), True

Utkarsh

Chris wrote:

What code is needed to tell excel to update a file when opened and not to
update a file when opened?





All times are GMT +1. The time now is 06:22 AM.

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