Solved

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

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

Try changing:
excel_app.Workbooks.Open attachloc

to read:
excel_app.Workbooks.Open attachloc, 3

BFN,

fp.
0
Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

 
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

Does Powershell have you tied up in knots?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

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

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…
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 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…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

821 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