Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Excel macro problem opening workbook with links 1

Status
Not open for further replies.

owentmoore

Technical User
Joined
Jul 20, 2006
Messages
60
Location
IE
I have an excel macro that opens another workbook as part of the code. This works fine for the majority of my workbooks but for one workbook there are links in it. This means that whenever it opens it asks if I want to update the links - I don't - but I must now be present anytime the workbook opens to click no.

I have tried the following code which has not worked...

Code:
    Application.DisplayAlerts = False

...my code to open workbook...

    Application.DisplayAlerts = True

Does anyone know how I can avoid this dialog box popping up?
 
Please refer to forum707 for VBA problems, you will find more info there

Cheers
 
You could also try looking in help:
expression.Open(FileName, UpdateLinks, ReadOnly, Format, Password, WriteResPassword, IgnoreReadOnlyRecommended, Origin, Delimiter, Editable, Notify, Converter, AddToMru, Local, CorruptLoad)......


Gavin
 
Thanks Gavin - should have checked the help first.

Owen
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top