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

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
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,215,222
Messages
6,123,704
Members
449,118
Latest member
MichealRed

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