ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   update links (ignore previous post same title) (https://www.excelbanter.com/excel-programming/311399-update-links-ignore-previous-post-same-title.html)

Julio

update links (ignore previous post same title)
 
I have an add-in link to a template. Whenever a file is created on the basis
of this template and the file is opened, user is prompted about updating
links.

To avoid it, I tried

sub Workbook_Open()
..........
ActiveWorkbook.UpdateLinks = xlUpdateLinksNever
........

which doesn't work, because the message pops up before _open is run. How do
I do this ???

Thanks


sebastienm

update links (ignore previous post same title)
 
Hi,
Is the book being open progmmatically from a Sub or manually from the user?
If from a sub, you might want to try:
Application.AskToUpdateLinks = False
'... open book here
Application.AskToUpdateLinks = True

Regards,
Sebastien

"julio" wrote:

I have an add-in link to a template. Whenever a file is created on the basis
of this template and the file is opened, user is prompted about updating
links.

To avoid it, I tried

sub Workbook_Open()
..........
ActiveWorkbook.UpdateLinks = xlUpdateLinksNever
........

which doesn't work, because the message pops up before _open is run. How do
I do this ???

Thanks


Julio

update links (ignore previous post same title)
 
Manually by the user

"sebastienm" wrote:

Hi,
Is the book being open progmmatically from a Sub or manually from the user?
If from a sub, you might want to try:
Application.AskToUpdateLinks = False
'... open book here
Application.AskToUpdateLinks = True

Regards,
Sebastien

"julio" wrote:

I have an add-in link to a template. Whenever a file is created on the basis
of this template and the file is opened, user is prompted about updating
links.

To avoid it, I tried

sub Workbook_Open()
..........
ActiveWorkbook.UpdateLinks = xlUpdateLinksNever
........

which doesn't work, because the message pops up before _open is run. How do
I do this ???

Thanks



All times are GMT +1. The time now is 01:55 AM.

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