Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

disable "the workbook you opened contains automatic links to information in another workbook..."

Posted on 2004-08-08
8
Medium Priority
?
1,023 Views
Last Modified: 2008-01-09
how do i disable this dialog box:
------------------------------------------------------------------------------------------------------------------------
The workbook you opened contains links to information in another workbook. Do you want to update this
workbook with changes made to the other workbook?

.To update all linked information, click Yes.
.to keep the existing information, click No.

                                                          Yes                      No

------------------------------------------------------------------------------------------------------------------------

i need to this able this so that my program would just run automatically without stops it would only terminate when it is done printing the last file. I place 250 points even though it is only a not so difficult question.
0
Comment
Question by:4ceReconSniper
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 4
8 Comments
 
LVL 35

Expert Comment

by:[ fanpages ]
ID: 11750289
Hi,

Are you opening the MS-Excel workbook via Visual Basic?

If so, please paste the code you are using and then we can best advise on what to change to avoid the prompt to re-link external files.

For example,

The second argument of the "Open" method of MS-Excel allows you to specify the default action to take:

expression.Open(FileName, UpdateLinks, ReadOnly, Format, Password, WriteResPassword, IgnoreReadOnlyRecommended, Origin, Delimiter, Editable, Notify, Converter, AddToMRU)

"UpdateLinks" (Optional Variant) specifies the way links in the file are updated.  If this argument is omitted, the user is prompted to specify how links will be updated.  Otherwise, this argument is one of the values listed in the following table.

Value/Meaning
0 Doesn't update any references
1 Updates external references but not remote references
2 Updates remote references but not external references
3 Updates both remote and external references


I suggest using a syntax such as:

Open(Filename:="filename.xls", UpdateLinks:=3)


BFN,

fp.
0
 
LVL 3

Author Comment

by:4ceReconSniper
ID: 11750369
Sub excelprocess()
    On Error GoTo xlserrorhandler
    Set excel_app = New Excel.Application
    excel_app.Workbooks.Open attachloc
    DoEvents
    excel_app.ActiveWorkbook.PrintOut
    PrintDetector
xlserrorhandler:
    excel_app.ActiveWorkbook.Close False
    excel_app.Quit
    Set excel_app = Nothing
End Sub
0
 
LVL 35

Accepted Solution

by:
[ fanpages ] earned 1000 total points
ID: 11750455
Hi,

Try changing:
excel_app.Workbooks.Open attachloc

to read:
excel_app.Workbooks.Open attachloc, 3

BFN,

fp.
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 3

Author Comment

by:4ceReconSniper
ID: 11750785
is there another parameter for it it seems it updates the changes i don't want to update the changes in the file
0
 
LVL 35

Assisted Solution

by:[ fanpages ]
[ fanpages ] earned 1000 total points
ID: 11750841
Try:
excel_app.Workbooks.Open attachloc, 0

insead.

BFN,

fp.
0
 
LVL 3

Author Comment

by:4ceReconSniper
ID: 11750934
fanpages->yeah i got it, its zero, well this question is not related in this topic, in your membership in EE when you have 10000 expert points do you have unlimited question points? im at 8800 points already and hoping when reaching 10000 i would have unlimited question points i have lots of question about programming to "real" experts like you for i am a new programmer i lack of experiences and knowledge on things like i asked, it seems easy but i just dont know it exist. Are you active always in EE?
0
 
LVL 35

Expert Comment

by:[ fanpages ]
ID: 11750996
Hi,

Sorry, I'm not sure about the unlimited question points, as I've never asked a question!

Try reviewing the membership details, or reviewing the FAQ assistance at:
http://www.experts-exchange.com/help.jsp

Personally, I'm not contributing as much on E-E as I would like.

Other stuff just gets in the way! :)

Glad we got an answer to your problem.

BFN,

fp.
[ http://NigelLee.info ]
0
 
LVL 3

Author Comment

by:4ceReconSniper
ID: 11751069
ok thanks
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
Suggested Courses

688 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question