Barrie, here's another one for you. Thnx in advance.

Barry Katcher

Well-known Member
Joined
Feb 25, 2002
Messages
4,053
Another annoying message box that pops up when I open my summary Workbook is "The Workbook you opened contains automatic links to info in another Workbook, etc, etc....Update (Yes) or (No).

Is there code to click "Yes"?

The line of code to open the subsid. w/b is "Workbook.Open Filename:="G......filename.xls", Password:="elf"

Do I use (True) somewhere?
 

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.
On 2002-03-08 09:19, Barry Katcher wrote:
Another annoying message box that pops up when I open my summary Workbook is "The Workbook you opened contains automatic links to info in another Workbook, etc, etc....Update (Yes) or (No).

Is there code to click "Yes"?

The line of code to open the subsid. w/b is "Workbook.Open Filename:="G......filename.xls", Password:="elf"

Do I use (True) somewhere?

Nope, sorry but if you have links in the file you will be prompted to update even if you have "displayalerts" set to false.
:(

Regards,
 
Upvote 0
On 2002-03-08 09:19, Barry Katcher wrote:
Another annoying message box that pops up when I open my summary Workbook is "The Workbook you opened contains automatic links to info in another Workbook, etc, etc....Update (Yes) or (No).

Is there code to click "Yes"?

The line of code to open the subsid. w/b is "Workbook.Open Filename:="G......filename.xls", Password:="elf"

Do I use (True) somewhere?


You can disable this message box for all files by going to Tools>Options>Edit and un-checking AskToUpdateAutomaticLists.

Or if you want to disable it only before your macro opens your susid. w/b and enable it immediately thereafter, put this in your macro :-

Application.AskToUpdateLinks = False
Workbook.Open Filename:="G......filename.xls", Password:="elf"
Application.AskToUpdateLinks = True
 
Upvote 0
On 2002-03-08 15:39, Escalus wrote:

Or if you want to disable it only before your macro opens your susid. w/b and enable it immediately thereafter, put this in your macro :-

Application.AskToUpdateLinks = False
Workbook.Open Filename:="G......filename.xls", Password:="elf"
Application.AskToUpdateLinks = True
Thanks for showing me something I did not know. :)

A note for Barry Katcher - this will eliminate that annoying message box, but the links will be updated without notifying the user. So....if your links are no good you will have problems.

Regards,
 
Upvote 0

Forum statistics

Threads
1,214,576
Messages
6,120,350
Members
448,956
Latest member
Adamsxl

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top