Solved

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

Posted on 2004-08-08
8
951 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 250 total points
ID: 11750455
Hi,

Try changing:
excel_app.Workbooks.Open attachloc

to read:
excel_app.Workbooks.Open attachloc, 3

BFN,

fp.
0
Independent Software Vendors: 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 250 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

Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

Question has a verified solution.

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

Introduction I needed to skip over some file processing within a For...Next loop in some old production code and wished that VB (classic) had a statement that would drop down to the end of the current iteration, bypassing the statements that were c…
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…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

738 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