<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: in VBA Forum</title>
    <link>https://forums.autodesk.com/t5/vba-forum/excel-dialog-response/m-p/336203#M86615</link>
    <description>Charlie,&lt;BR /&gt;
&lt;BR /&gt;
    Try the following to open the workbook&lt;BR /&gt;
&lt;BR /&gt;
            Dim xlApp as New Excel.Application&lt;BR /&gt;
            Dim xlWorkbook as Excel.Workbook&lt;BR /&gt;
&lt;BR /&gt;
            Set xlApp = CreateObject("Excel.Application")&lt;BR /&gt;
&lt;BR /&gt;
            Set xlWorkbook = xlApp.Workbooks.Open(FileName:="filename.xls",&lt;BR /&gt;
UpdateLinks:=3)&lt;BR /&gt;
&lt;BR /&gt;
David</description>
    <pubDate>Mon, 05 Mar 2001 13:57:35 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2001-03-05T13:57:35Z</dc:date>
    <item>
      <title>Excel Dialog Response</title>
      <link>https://forums.autodesk.com/t5/vba-forum/excel-dialog-response/m-p/336198#M86610</link>
      <description>(First posted in MDT5 group)&lt;BR /&gt;
I am updating MDT5 global variables from an Excel workbook that is fed by&lt;BR /&gt;
data from a second workbook.  When I update the variables (in a VBA&lt;BR /&gt;
routine), Excel returns a " . . . Do you want to update this workbook with&lt;BR /&gt;
changes from the other workbook . . .? Yes or No."  How do I issue the&lt;BR /&gt;
needed affirmative response to Excel to keep the program running?  Perhaps&lt;BR /&gt;
this is a better question for the VBA group?&lt;BR /&gt;
&lt;BR /&gt;
Thanks.&lt;BR /&gt;
Charlie-</description>
      <pubDate>Mon, 05 Mar 2001 09:15:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/excel-dialog-response/m-p/336198#M86610</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2001-03-05T09:15:30Z</dc:date>
    </item>
    <item>
      <title>Re: Excel Dialog Response</title>
      <link>https://forums.autodesk.com/t5/vba-forum/excel-dialog-response/m-p/336199#M86611</link>
      <description>Hi Charlie,&lt;BR /&gt;
&lt;BR /&gt;
    If you are opening the workbook from VBA then you should check out the&lt;BR /&gt;
UpdateLinks argument for the .open statement.  Given below is an excerpt&lt;BR /&gt;
from Excel VBA Help:&lt;BR /&gt;
&lt;BR /&gt;
Syntax&lt;BR /&gt;
&lt;BR /&gt;
expression.Open(FileName, UpdateLinks, ReadOnly, Format, Password,&lt;BR /&gt;
WriteResPassword, IgnoreReadOnlyRecommended, Origin, Delimiter, Editable,&lt;BR /&gt;
Notify, Converter, AddToMRU)&lt;BR /&gt;
&lt;BR /&gt;
expression   Required. An expression that returns a Workbooks or RecentFile&lt;BR /&gt;
object.&lt;BR /&gt;
&lt;BR /&gt;
FileName   Required String. The file name of the workbook to be opened.&lt;BR /&gt;
&lt;BR /&gt;
UpdateLinks   Optional Variant. Specifies the way links in the file are&lt;BR /&gt;
updated. If this argument is omitted, the user is prompted to specify how&lt;BR /&gt;
links will be updated. Otherwise, this argument is one of the values listed&lt;BR /&gt;
in the following table.&lt;BR /&gt;
&lt;BR /&gt;
Value Meaning&lt;BR /&gt;
0 Doesn't update any references&lt;BR /&gt;
1 Updates external references but not remote references&lt;BR /&gt;
2 Updates remote references but not external references&lt;BR /&gt;
3 Updates both remote and external references&lt;BR /&gt;
If Microsoft Excel is opening a file in the WKS, WK1, or WK3 format and the&lt;BR /&gt;
UpdateLinks argument is 2, Microsoft Excel generates charts from the graphs&lt;BR /&gt;
attached to the file. If the argument is 0, no charts are created.&lt;BR /&gt;
&lt;BR /&gt;
Hope this helps.&lt;BR /&gt;
&lt;BR /&gt;
David&lt;BR /&gt;
&lt;BR /&gt;
Charlie Carr &lt;CCARR&gt; wrote in message&lt;BR /&gt;
news:B22FA25B56B138192FB79A0F92C96BA6@in.WebX.maYIadrTaRb...&lt;BR /&gt;
&amp;gt; (First posted in MDT5 group)&lt;BR /&gt;
&amp;gt; I am updating MDT5 global variables from an Excel workbook that is fed by&lt;BR /&gt;
&amp;gt; data from a second workbook.  When I update the variables (in a VBA&lt;BR /&gt;
&amp;gt; routine), Excel returns a " . . . Do you want to update this workbook with&lt;BR /&gt;
&amp;gt; changes from the other workbook . . .? Yes or No."  How do I issue the&lt;BR /&gt;
&amp;gt; needed affirmative response to Excel to keep the program running?  Perhaps&lt;BR /&gt;
&amp;gt; this is a better question for the VBA group?&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Thanks.&lt;BR /&gt;
&amp;gt; Charlie-&lt;BR /&gt;
&amp;gt;&lt;/CCARR&gt;</description>
      <pubDate>Mon, 05 Mar 2001 11:40:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/excel-dialog-response/m-p/336199#M86611</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2001-03-05T11:40:47Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/vba-forum/excel-dialog-response/m-p/336200#M86612</link>
      <description>David,&lt;BR /&gt;
Thanks for the response.  Actually, the workbook isbeing opened via :&lt;BR /&gt;
mcadDoc.UpdateGlobalParameterLink&lt;BR /&gt;
From a stand alone workbook, this works fine.  However when data is called&lt;BR /&gt;
to that workbook from a remote source, it returns the 'do you want to update&lt;BR /&gt;
. . .' question.  If both files are open, then I don't think the question is&lt;BR /&gt;
asked.  I could use this as a workaround, I s'pose, but I'd rather find a&lt;BR /&gt;
way with a little more finess.  Any other thoughts?&lt;BR /&gt;
&lt;BR /&gt;
Thanks,&lt;BR /&gt;
C-&lt;BR /&gt;
&lt;BR /&gt;
"David Moroni" &lt;DMORONI&gt; wrote in message&lt;BR /&gt;
news:DB22309C4DB270425E91D0DB0364E6B5@in.WebX.maYIadrTaRb...&lt;BR /&gt;
&amp;gt; Hi Charlie,&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;     If you are opening the workbook from VBA then you should check out the&lt;BR /&gt;
&amp;gt; UpdateLinks argument for the .open statement.  Given below is an excerpt&lt;BR /&gt;
&amp;gt; from Excel VBA Help:&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Syntax&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; expression.Open(FileName, UpdateLinks, ReadOnly, Format, Password,&lt;BR /&gt;
&amp;gt; WriteResPassword, IgnoreReadOnlyRecommended, Origin, Delimiter, Editable,&lt;BR /&gt;
&amp;gt; Notify, Converter, AddToMRU)&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; expression   Required. An expression that returns a Workbooks or&lt;BR /&gt;
RecentFile&lt;BR /&gt;
&amp;gt; object.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; FileName   Required String. The file name of the workbook to be opened.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; UpdateLinks   Optional Variant. Specifies the way links in the file are&lt;BR /&gt;
&amp;gt; updated. If this argument is omitted, the user is prompted to specify how&lt;BR /&gt;
&amp;gt; links will be updated. Otherwise, this argument is one of the values&lt;BR /&gt;
listed&lt;BR /&gt;
&amp;gt; in the following table.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Value Meaning&lt;BR /&gt;
&amp;gt; 0 Doesn't update any references&lt;BR /&gt;
&amp;gt; 1 Updates external references but not remote references&lt;BR /&gt;
&amp;gt; 2 Updates remote references but not external references&lt;BR /&gt;
&amp;gt; 3 Updates both remote and external references&lt;BR /&gt;
&amp;gt; If Microsoft Excel is opening a file in the WKS, WK1, or WK3 format and&lt;BR /&gt;
the&lt;BR /&gt;
&amp;gt; UpdateLinks argument is 2, Microsoft Excel generates charts from the&lt;BR /&gt;
graphs&lt;BR /&gt;
&amp;gt; attached to the file. If the argument is 0, no charts are created.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Hope this helps.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; David&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Charlie Carr &lt;CCARR&gt; wrote in message&lt;BR /&gt;
&amp;gt; news:B22FA25B56B138192FB79A0F92C96BA6@in.WebX.maYIadrTaRb...&lt;BR /&gt;
&amp;gt; &amp;gt; (First posted in MDT5 group)&lt;BR /&gt;
&amp;gt; &amp;gt; I am updating MDT5 global variables from an Excel workbook that is fed&lt;BR /&gt;
by&lt;BR /&gt;
&amp;gt; &amp;gt; data from a second workbook.  When I update the variables (in a VBA&lt;BR /&gt;
&amp;gt; &amp;gt; routine), Excel returns a " . . . Do you want to update this workbook&lt;BR /&gt;
with&lt;BR /&gt;
&amp;gt; &amp;gt; changes from the other workbook . . .? Yes or No."  How do I issue the&lt;BR /&gt;
&amp;gt; &amp;gt; needed affirmative response to Excel to keep the program running?&lt;BR /&gt;
Perhaps&lt;BR /&gt;
&amp;gt; &amp;gt; this is a better question for the VBA group?&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; Thanks.&lt;BR /&gt;
&amp;gt; &amp;gt; Charlie-&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt;&lt;/CCARR&gt;&lt;/DMORONI&gt;</description>
      <pubDate>Mon, 05 Mar 2001 12:11:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/excel-dialog-response/m-p/336200#M86612</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2001-03-05T12:11:44Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/vba-forum/excel-dialog-response/m-p/336201#M86613</link>
      <description>Charlie,&lt;BR /&gt;
&lt;BR /&gt;
    Sorry, I'm still pretty new to Autocad, so I'm not familiar with the&lt;BR /&gt;
mcadDoc.UpdateGlobalParameterLink.  I've run into the update links dialog in&lt;BR /&gt;
other VB projects I've worked on, so I thought the UpdateLink parameter&lt;BR /&gt;
might apply here too.  Good luck with this problem.&lt;BR /&gt;
&lt;BR /&gt;
David&lt;BR /&gt;
&lt;BR /&gt;
Charlie Carr &lt;CCARR&gt; wrote in message&lt;BR /&gt;
news:2656A027977E8FE3644DEB17AF238A16@in.WebX.maYIadrTaRb...&lt;BR /&gt;
&amp;gt; David,&lt;BR /&gt;
&amp;gt; Thanks for the response.  Actually, the workbook isbeing opened via :&lt;BR /&gt;
&amp;gt; mcadDoc.UpdateGlobalParameterLink&lt;BR /&gt;
&amp;gt; From a stand alone workbook, this works fine.  However when data is called&lt;BR /&gt;
&amp;gt; to that workbook from a remote source, it returns the 'do you want to&lt;BR /&gt;
update&lt;BR /&gt;
&amp;gt; . . .' question.  If both files are open, then I don't think the question&lt;BR /&gt;
is&lt;BR /&gt;
&amp;gt; asked.  I could use this as a workaround, I s'pose, but I'd rather find a&lt;BR /&gt;
&amp;gt; way with a little more finess.  Any other thoughts?&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Thanks,&lt;BR /&gt;
&amp;gt; C-&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; "David Moroni" &lt;DMORONI&gt; wrote in message&lt;BR /&gt;
&amp;gt; news:DB22309C4DB270425E91D0DB0364E6B5@in.WebX.maYIadrTaRb...&lt;BR /&gt;
&amp;gt; &amp;gt; Hi Charlie,&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt;     If you are opening the workbook from VBA then you should check out&lt;BR /&gt;
the&lt;BR /&gt;
&amp;gt; &amp;gt; UpdateLinks argument for the .open statement.  Given below is an excerpt&lt;BR /&gt;
&amp;gt; &amp;gt; from Excel VBA Help:&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; Syntax&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; expression.Open(FileName, UpdateLinks, ReadOnly, Format, Password,&lt;BR /&gt;
&amp;gt; &amp;gt; WriteResPassword, IgnoreReadOnlyRecommended, Origin, Delimiter,&lt;BR /&gt;
Editable,&lt;BR /&gt;
&amp;gt; &amp;gt; Notify, Converter, AddToMRU)&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; expression   Required. An expression that returns a Workbooks or&lt;BR /&gt;
&amp;gt; RecentFile&lt;BR /&gt;
&amp;gt; &amp;gt; object.&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; FileName   Required String. The file name of the workbook to be opened.&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; UpdateLinks   Optional Variant. Specifies the way links in the file are&lt;BR /&gt;
&amp;gt; &amp;gt; updated. If this argument is omitted, the user is prompted to specify&lt;BR /&gt;
how&lt;BR /&gt;
&amp;gt; &amp;gt; links will be updated. Otherwise, this argument is one of the values&lt;BR /&gt;
&amp;gt; listed&lt;BR /&gt;
&amp;gt; &amp;gt; in the following table.&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; Value Meaning&lt;BR /&gt;
&amp;gt; &amp;gt; 0 Doesn't update any references&lt;BR /&gt;
&amp;gt; &amp;gt; 1 Updates external references but not remote references&lt;BR /&gt;
&amp;gt; &amp;gt; 2 Updates remote references but not external references&lt;BR /&gt;
&amp;gt; &amp;gt; 3 Updates both remote and external references&lt;BR /&gt;
&amp;gt; &amp;gt; If Microsoft Excel is opening a file in the WKS, WK1, or WK3 format and&lt;BR /&gt;
&amp;gt; the&lt;BR /&gt;
&amp;gt; &amp;gt; UpdateLinks argument is 2, Microsoft Excel generates charts from the&lt;BR /&gt;
&amp;gt; graphs&lt;BR /&gt;
&amp;gt; &amp;gt; attached to the file. If the argument is 0, no charts are created.&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; Hope this helps.&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; David&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; Charlie Carr &lt;CCARR&gt; wrote in message&lt;BR /&gt;
&amp;gt; &amp;gt; news:B22FA25B56B138192FB79A0F92C96BA6@in.WebX.maYIadrTaRb...&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; (First posted in MDT5 group)&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; I am updating MDT5 global variables from an Excel workbook that is fed&lt;BR /&gt;
&amp;gt; by&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; data from a second workbook.  When I update the variables (in a VBA&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; routine), Excel returns a " . . . Do you want to update this workbook&lt;BR /&gt;
&amp;gt; with&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; changes from the other workbook . . .? Yes or No."  How do I issue the&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; needed affirmative response to Excel to keep the program running?&lt;BR /&gt;
&amp;gt; Perhaps&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; this is a better question for the VBA group?&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; Thanks.&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; Charlie-&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt;&lt;/CCARR&gt;&lt;/DMORONI&gt;&lt;/CCARR&gt;</description>
      <pubDate>Mon, 05 Mar 2001 12:51:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/excel-dialog-response/m-p/336201#M86613</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2001-03-05T12:51:08Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/vba-forum/excel-dialog-response/m-p/336202#M86614</link>
      <description>David,&lt;BR /&gt;
I'm trying the workaround, and I.m stuck again (I'm very new to VBA, but&lt;BR /&gt;
been with Autocad for a long time).  I tried opening the XL file in the&lt;BR /&gt;
background to try to prevent the "do you want to update " message from&lt;BR /&gt;
coming, and it is still there.  So I thought I'd try your UpdateLink&lt;BR /&gt;
parameter, but I'm obviously not getting it right.  I've tried a lot of&lt;BR /&gt;
variations, but it is essentially:&lt;BR /&gt;
    Excel.Workbooks.Open ("filename.xls",3)&lt;BR /&gt;
&lt;BR /&gt;
I'm missing something in the syntax.  The error message I get varies with&lt;BR /&gt;
what I put in there, but everything turns out to be wrong.  Can you give me&lt;BR /&gt;
a clue?&lt;BR /&gt;
&lt;BR /&gt;
Thanks,&lt;BR /&gt;
C-&lt;BR /&gt;
&lt;BR /&gt;
"David Moroni" &lt;DMORONI&gt; wrote in message&lt;BR /&gt;
news:1731025D98CE5309DB0140242DD30278@in.WebX.maYIadrTaRb...&lt;BR /&gt;
&amp;gt; Charlie,&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;     Sorry, I'm still pretty new to Autocad, so I'm not familiar with the&lt;BR /&gt;
&amp;gt; mcadDoc.UpdateGlobalParameterLink.  I've run into the update links dialog&lt;BR /&gt;
in&lt;BR /&gt;
&amp;gt; other VB projects I've worked on, so I thought the UpdateLink parameter&lt;BR /&gt;
&amp;gt; might apply here too.  Good luck with this problem.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; David&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Charlie Carr &lt;CCARR&gt; wrote in message&lt;BR /&gt;
&amp;gt; news:2656A027977E8FE3644DEB17AF238A16@in.WebX.maYIadrTaRb...&lt;BR /&gt;
&amp;gt; &amp;gt; David,&lt;BR /&gt;
&amp;gt; &amp;gt; Thanks for the response.  Actually, the workbook isbeing opened via :&lt;BR /&gt;
&amp;gt; &amp;gt; mcadDoc.UpdateGlobalParameterLink&lt;BR /&gt;
&amp;gt; &amp;gt; From a stand alone workbook, this works fine.  However when data is&lt;BR /&gt;
called&lt;BR /&gt;
&amp;gt; &amp;gt; to that workbook from a remote source, it returns the 'do you want to&lt;BR /&gt;
&amp;gt; update&lt;BR /&gt;
&amp;gt; &amp;gt; . . .' question.  If both files are open, then I don't think the&lt;BR /&gt;
question&lt;BR /&gt;
&amp;gt; is&lt;BR /&gt;
&amp;gt; &amp;gt; asked.  I could use this as a workaround, I s'pose, but I'd rather find&lt;BR /&gt;
a&lt;BR /&gt;
&amp;gt; &amp;gt; way with a little more finess.  Any other thoughts?&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; Thanks,&lt;BR /&gt;
&amp;gt; &amp;gt; C-&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; "David Moroni" &lt;DMORONI&gt; wrote in message&lt;BR /&gt;
&amp;gt; &amp;gt; news:DB22309C4DB270425E91D0DB0364E6B5@in.WebX.maYIadrTaRb...&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; Hi Charlie,&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;     If you are opening the workbook from VBA then you should check out&lt;BR /&gt;
&amp;gt; the&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; UpdateLinks argument for the .open statement.  Given below is an&lt;BR /&gt;
excerpt&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; from Excel VBA Help:&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; Syntax&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; expression.Open(FileName, UpdateLinks, ReadOnly, Format, Password,&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; WriteResPassword, IgnoreReadOnlyRecommended, Origin, Delimiter,&lt;BR /&gt;
&amp;gt; Editable,&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; Notify, Converter, AddToMRU)&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; expression   Required. An expression that returns a Workbooks or&lt;BR /&gt;
&amp;gt; &amp;gt; RecentFile&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; object.&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; FileName   Required String. The file name of the workbook to be&lt;BR /&gt;
opened.&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; UpdateLinks   Optional Variant. Specifies the way links in the file&lt;BR /&gt;
are&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; updated. If this argument is omitted, the user is prompted to specify&lt;BR /&gt;
&amp;gt; how&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; links will be updated. Otherwise, this argument is one of the values&lt;BR /&gt;
&amp;gt; &amp;gt; listed&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; in the following table.&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; Value Meaning&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; 0 Doesn't update any references&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; 1 Updates external references but not remote references&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; 2 Updates remote references but not external references&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; 3 Updates both remote and external references&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; If Microsoft Excel is opening a file in the WKS, WK1, or WK3 format&lt;BR /&gt;
and&lt;BR /&gt;
&amp;gt; &amp;gt; the&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; UpdateLinks argument is 2, Microsoft Excel generates charts from the&lt;BR /&gt;
&amp;gt; &amp;gt; graphs&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; attached to the file. If the argument is 0, no charts are created.&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; Hope this helps.&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; David&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; Charlie Carr &lt;CCARR&gt; wrote in message&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; news:B22FA25B56B138192FB79A0F92C96BA6@in.WebX.maYIadrTaRb...&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; (First posted in MDT5 group)&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; I am updating MDT5 global variables from an Excel workbook that is&lt;BR /&gt;
fed&lt;BR /&gt;
&amp;gt; &amp;gt; by&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; data from a second workbook.  When I update the variables (in a VBA&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; routine), Excel returns a " . . . Do you want to update this&lt;BR /&gt;
workbook&lt;BR /&gt;
&amp;gt; &amp;gt; with&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; changes from the other workbook . . .? Yes or No."  How do I issue&lt;BR /&gt;
the&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; needed affirmative response to Excel to keep the program running?&lt;BR /&gt;
&amp;gt; &amp;gt; Perhaps&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; this is a better question for the VBA group?&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; Thanks.&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; Charlie-&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt;&lt;/CCARR&gt;&lt;/DMORONI&gt;&lt;/CCARR&gt;&lt;/DMORONI&gt;</description>
      <pubDate>Mon, 05 Mar 2001 13:29:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/excel-dialog-response/m-p/336202#M86614</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2001-03-05T13:29:56Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/vba-forum/excel-dialog-response/m-p/336203#M86615</link>
      <description>Charlie,&lt;BR /&gt;
&lt;BR /&gt;
    Try the following to open the workbook&lt;BR /&gt;
&lt;BR /&gt;
            Dim xlApp as New Excel.Application&lt;BR /&gt;
            Dim xlWorkbook as Excel.Workbook&lt;BR /&gt;
&lt;BR /&gt;
            Set xlApp = CreateObject("Excel.Application")&lt;BR /&gt;
&lt;BR /&gt;
            Set xlWorkbook = xlApp.Workbooks.Open(FileName:="filename.xls",&lt;BR /&gt;
UpdateLinks:=3)&lt;BR /&gt;
&lt;BR /&gt;
David</description>
      <pubDate>Mon, 05 Mar 2001 13:57:35 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/excel-dialog-response/m-p/336203#M86615</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2001-03-05T13:57:35Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/vba-forum/excel-dialog-response/m-p/336204#M86616</link>
      <description>Thanks.  I tried it, and I still get the dialog box asking me if I want to&lt;BR /&gt;
update!  The file doesn't actually open in an XL window . . . it must be in&lt;BR /&gt;
the background, though, because when I try to open the file in XL after&lt;BR /&gt;
running this, I get a share violation, asking if I want to open it read&lt;BR /&gt;
only, or notify the other user (myself).  Is there a way to completely open&lt;BR /&gt;
it, then close it all down (including the XL window)?&lt;BR /&gt;
&lt;BR /&gt;
C-&lt;BR /&gt;
&lt;BR /&gt;
"David Moroni" &lt;DMORONI&gt; wrote in message&lt;BR /&gt;
news:F97B56229DB70482F060F053BC9544EA@in.WebX.maYIadrTaRb...&lt;BR /&gt;
&amp;gt; Charlie,&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;     Try the following to open the workbook&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;             Dim xlApp as New Excel.Application&lt;BR /&gt;
&amp;gt;             Dim xlWorkbook as Excel.Workbook&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;             Set xlApp = CreateObject("Excel.Application")&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;             Set xlWorkbook =&lt;BR /&gt;
xlApp.Workbooks.Open(FileName:="filename.xls",&lt;BR /&gt;
&amp;gt; UpdateLinks:=3)&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; David&lt;BR /&gt;
&amp;gt;&lt;/DMORONI&gt;</description>
      <pubDate>Mon, 05 Mar 2001 14:40:06 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/excel-dialog-response/m-p/336204#M86616</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2001-03-05T14:40:06Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/vba-forum/excel-dialog-response/m-p/336205#M86617</link>
      <description>Charlie, I'm thinking you might have some success with&lt;BR /&gt;
Excel.Application.DisplayAlerts = False in the code for Excel. This should&lt;BR /&gt;
disable the message alert. As far as open and shut down, see below.&lt;BR /&gt;
&lt;BR /&gt;
Public Sub ExcelStart()&lt;BR /&gt;
    Dim xlApp As Excel.Application&lt;BR /&gt;
    Dim xlBook As Excel.Workbook&lt;BR /&gt;
    Dim xlSheet As Excel.Worksheet&lt;BR /&gt;
&lt;BR /&gt;
    On Error Resume Next&lt;BR /&gt;
    Set xlApp = GetObject(, "Excel.Application")&lt;BR /&gt;
    If Err Then&lt;BR /&gt;
        Err.Clear&lt;BR /&gt;
        Set xlApp = CreateObject("Excel.Application")&lt;BR /&gt;
        If Err Then&lt;BR /&gt;
            MsgBox "Could not connect to Microsoft Excel", _&lt;BR /&gt;
   vbCritical + vbOKOnly, sDiaTitle&lt;BR /&gt;
            Err.Clear&lt;BR /&gt;
            Exit Sub&lt;BR /&gt;
        End If&lt;BR /&gt;
    End If&lt;BR /&gt;
&lt;BR /&gt;
    xlApp.DisplayAlerts = False&lt;BR /&gt;
    Set xlBook = xlApp.Workbooks.Add&lt;BR /&gt;
    Set xlSheet = xlApp.ActiveWorkbook.Sheets("Sheet1")&lt;BR /&gt;
&lt;BR /&gt;
    '&lt;YOUR code="" here=""&gt;&lt;BR /&gt;
&lt;BR /&gt;
    xlApp.Quit&lt;BR /&gt;
&lt;BR /&gt;
    Set xlApp = Nothing&lt;BR /&gt;
    Set xlBook = Nothing&lt;BR /&gt;
    Set xlSheet = Nothing&lt;BR /&gt;
&lt;BR /&gt;
End Sub&lt;BR /&gt;
&lt;BR /&gt;
"Charlie Carr" &lt;CCARR&gt; wrote in message&lt;BR /&gt;
news:E18C80E728346708C9C09E1739DAEBED@in.WebX.maYIadrTaRb...&lt;BR /&gt;
Thanks.  I tried it, and I still get the dialog box asking me if I want to&lt;BR /&gt;
update!  The file doesn't actually open in an XL window . . . it must be in&lt;BR /&gt;
the background, though, because when I try to open the file in XL after&lt;BR /&gt;
running this, I get a share violation, asking if I want to open it read&lt;BR /&gt;
only, or notify the other user (myself).  Is there a way to completely open&lt;BR /&gt;
it, then close it all down (including the XL window)?&lt;BR /&gt;
&lt;BR /&gt;
C-&lt;BR /&gt;
&lt;BR /&gt;
"David Moroni" &lt;DMORONI&gt; wrote in message&lt;BR /&gt;
news:F97B56229DB70482F060F053BC9544EA@in.WebX.maYIadrTaRb...&lt;BR /&gt;
&amp;gt; Charlie,&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;     Try the following to open the workbook&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;             Dim xlApp as New Excel.Application&lt;BR /&gt;
&amp;gt;             Dim xlWorkbook as Excel.Workbook&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;             Set xlApp = CreateObject("Excel.Application")&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;             Set xlWorkbook =&lt;BR /&gt;
xlApp.Workbooks.Open(FileName:="filename.xls",&lt;BR /&gt;
&amp;gt; UpdateLinks:=3)&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; David&lt;BR /&gt;
&amp;gt;&lt;/DMORONI&gt;&lt;/CCARR&gt;&lt;/YOUR&gt;</description>
      <pubDate>Mon, 05 Mar 2001 15:27:06 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/excel-dialog-response/m-p/336205#M86617</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2001-03-05T15:27:06Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/vba-forum/excel-dialog-response/m-p/336206#M86618</link>
      <description>Charlie,&lt;BR /&gt;
&lt;BR /&gt;
    You were right that the code opened the workbook in the background.&lt;BR /&gt;
That is why you got a share violation when you tried to open the workbook&lt;BR /&gt;
again.  Kevin Terry has given you the right approach when it comes to&lt;BR /&gt;
automating Office apps.  Any time you declare an object, you should always&lt;BR /&gt;
exit or close the object application and then set the object to nothing.  I&lt;BR /&gt;
should have included that in my last post.&lt;BR /&gt;
&lt;BR /&gt;
David</description>
      <pubDate>Mon, 05 Mar 2001 20:12:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/excel-dialog-response/m-p/336206#M86618</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2001-03-05T20:12:34Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/vba-forum/excel-dialog-response/m-p/336207#M86619</link>
      <description>Thanks. Kevin.&lt;BR /&gt;
I'll give this a try when I get the chance.  I had a small window of&lt;BR /&gt;
opportunity to work on this, and I've since been pulled into something else&lt;BR /&gt;
. . . you know how it goes.  Maybe next week?&lt;BR /&gt;
&lt;BR /&gt;
Thanks, all, for your help.&lt;BR /&gt;
&lt;BR /&gt;
Charlie-&lt;BR /&gt;
&lt;BR /&gt;
"Kevin Terry" &lt;KTIC&gt; wrote in message&lt;BR /&gt;
news:B713A8AE4A78CA0C96935DB6AAE543AF@in.WebX.maYIadrTaRb...&lt;BR /&gt;
&amp;gt; Charlie, I'm thinking you might have some success with&lt;BR /&gt;
&amp;gt; Excel.Application.DisplayAlerts = False in the code for Excel. This should&lt;BR /&gt;
&amp;gt; disable the message alert. As far as open and shut down, see below.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Public Sub ExcelStart()&lt;BR /&gt;
&amp;gt;     Dim xlApp As Excel.Application&lt;BR /&gt;
&amp;gt;     Dim xlBook As Excel.Workbook&lt;BR /&gt;
&amp;gt;     Dim xlSheet As Excel.Worksheet&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;     On Error Resume Next&lt;BR /&gt;
&amp;gt;     Set xlApp = GetObject(, "Excel.Application")&lt;BR /&gt;
&amp;gt;     If Err Then&lt;BR /&gt;
&amp;gt;         Err.Clear&lt;BR /&gt;
&amp;gt;         Set xlApp = CreateObject("Excel.Application")&lt;BR /&gt;
&amp;gt;         If Err Then&lt;BR /&gt;
&amp;gt;             MsgBox "Could not connect to Microsoft Excel", _&lt;BR /&gt;
&amp;gt;    vbCritical + vbOKOnly, sDiaTitle&lt;BR /&gt;
&amp;gt;             Err.Clear&lt;BR /&gt;
&amp;gt;             Exit Sub&lt;BR /&gt;
&amp;gt;         End If&lt;BR /&gt;
&amp;gt;     End If&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;     xlApp.DisplayAlerts = False&lt;BR /&gt;
&amp;gt;     Set xlBook = xlApp.Workbooks.Add&lt;BR /&gt;
&amp;gt;     Set xlSheet = xlApp.ActiveWorkbook.Sheets("Sheet1")&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;     '&lt;YOUR code="" here=""&gt;&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;     xlApp.Quit&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;     Set xlApp = Nothing&lt;BR /&gt;
&amp;gt;     Set xlBook = Nothing&lt;BR /&gt;
&amp;gt;     Set xlSheet = Nothing&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; End Sub&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; "Charlie Carr" &lt;CCARR&gt; wrote in message&lt;BR /&gt;
&amp;gt; news:E18C80E728346708C9C09E1739DAEBED@in.WebX.maYIadrTaRb...&lt;BR /&gt;
&amp;gt; Thanks.  I tried it, and I still get the dialog box asking me if I want to&lt;BR /&gt;
&amp;gt; update!  The file doesn't actually open in an XL window . . . it must be&lt;BR /&gt;
in&lt;BR /&gt;
&amp;gt; the background, though, because when I try to open the file in XL after&lt;BR /&gt;
&amp;gt; running this, I get a share violation, asking if I want to open it read&lt;BR /&gt;
&amp;gt; only, or notify the other user (myself).  Is there a way to completely&lt;BR /&gt;
open&lt;BR /&gt;
&amp;gt; it, then close it all down (including the XL window)?&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; C-&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; "David Moroni" &lt;DMORONI&gt; wrote in message&lt;BR /&gt;
&amp;gt; news:F97B56229DB70482F060F053BC9544EA@in.WebX.maYIadrTaRb...&lt;BR /&gt;
&amp;gt; &amp;gt; Charlie,&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt;     Try the following to open the workbook&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt;             Dim xlApp as New Excel.Application&lt;BR /&gt;
&amp;gt; &amp;gt;             Dim xlWorkbook as Excel.Workbook&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt;             Set xlApp = CreateObject("Excel.Application")&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt;             Set xlWorkbook =&lt;BR /&gt;
&amp;gt; xlApp.Workbooks.Open(FileName:="filename.xls",&lt;BR /&gt;
&amp;gt; &amp;gt; UpdateLinks:=3)&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; David&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt;&lt;/DMORONI&gt;&lt;/CCARR&gt;&lt;/YOUR&gt;&lt;/KTIC&gt;</description>
      <pubDate>Thu, 08 Mar 2001 07:18:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/excel-dialog-response/m-p/336207#M86619</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2001-03-08T07:18:44Z</dc:date>
    </item>
  </channel>
</rss>

