Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

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

Posted on 2004-08-08
8
Medium Priority
?
1,086 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
  • 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
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
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

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!

Question has a verified solution.

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

When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
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

876 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