Solved

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

Posted on 2004-08-08
8
857 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 ]
Comment Utility
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
Comment Utility
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
Comment Utility
Hi,

Try changing:
excel_app.Workbooks.Open attachloc

to read:
excel_app.Workbooks.Open attachloc, 3

BFN,

fp.
0
 
LVL 3

Author Comment

by:4ceReconSniper
Comment Utility
is there another parameter for it it seems it updates the changes i don't want to update the changes in the file
0
IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 
LVL 35

Assisted Solution

by:[ fanpages ]
[ fanpages ] earned 250 total points
Comment Utility
Try:
excel_app.Workbooks.Open attachloc, 0

insead.

BFN,

fp.
0
 
LVL 3

Author Comment

by:4ceReconSniper
Comment Utility
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 ]
Comment Utility
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
Comment Utility
ok thanks
0

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
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 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…

743 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now