<?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: CreateObject(&amp;quot;Excel.Application&amp;quot;) - Office365 in Inventor Programming Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-forum/createobject-quot-excel-application-quot-office365/m-p/10474792#M50021</link>
    <description>&lt;P&gt;If you are using VBA, then double check to make sure your reference to the "Microsoft Excel 16.0 Object Library" is checked (turned on).&amp;nbsp; The "16.0" part may be different on your machine, because it has to do with what version it is.&amp;nbsp; To check this, within your VBA Editor screen, click on the Tools tab, then click on References....&amp;nbsp; Beware, these are set-up differently for document projects than they are for the main application project, so make sure you have the right VBA project selected (active) when you go into the References dialog.&amp;nbsp; (If your macro is in the Application project, make sure you click on the application project in the project explorer window, before you open the references dialog.)&amp;nbsp; In that references dialog, scroll down the list until you see an item with a similar name to the one I mentioned above, then make sure it has a check mark in its checkbox, then click the main OK button.&lt;/P&gt;</description>
    <pubDate>Fri, 16 Jul 2021 17:29:13 GMT</pubDate>
    <dc:creator>WCrihfield</dc:creator>
    <dc:date>2021-07-16T17:29:13Z</dc:date>
    <item>
      <title>CreateObject("Excel.Application") - Office365</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/createobject-quot-excel-application-quot-office365/m-p/10302325#M50005</link>
      <description>&lt;P&gt;Hi All,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have receive a new machine with office365 installed and my code give following error.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="floccipier_0-1620644645045.png" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/917071iDDF3C6DC6160173B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="floccipier_0-1620644645045.png" alt="floccipier_0-1620644645045.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;excel version:&amp;nbsp;&lt;!--  StartFragment   --&gt;&lt;/P&gt;&lt;P class="pf0"&gt;&lt;SPAN class="cf0"&gt;Microsoft® Excel® for Microsoft 365 MSO (16.0.13929.20222) 64-bit &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;!--  EndFragment   --&gt;&lt;/P&gt;&lt;P&gt;Invenotr2019 Build 330&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any idea how can I fix it?&lt;/P&gt;&lt;P&gt;regards,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sam&lt;/P&gt;</description>
      <pubDate>Mon, 10 May 2021 11:08:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/createobject-quot-excel-application-quot-office365/m-p/10302325#M50005</guid>
      <dc:creator>floccipier</dc:creator>
      <dc:date>2021-05-10T11:08:17Z</dc:date>
    </item>
    <item>
      <title>Re: CreateObject("Excel.Application") - Office365</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/createobject-quot-excel-application-quot-office365/m-p/10302353#M50006</link>
      <description>&lt;P&gt;Update:&amp;nbsp;&lt;/P&gt;&lt;P&gt;Changed below code&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; Dim excelApp As New Excel.Application&lt;BR /&gt;&amp;nbsp; &amp;nbsp; Set excelApp = CreateObject("Excel.Application")&lt;/P&gt;&lt;P&gt;to&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;Dim excelApp As New Excel.Application&lt;/P&gt;&lt;P&gt;and it went ahead but now stopping at this line:&lt;BR /&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;Set workBook = excelApp.Workbooks.Open(ProjectPath)&lt;BR /&gt;and error is same as shown in original post.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 10 May 2021 11:21:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/createobject-quot-excel-application-quot-office365/m-p/10302353#M50006</guid>
      <dc:creator>floccipier</dc:creator>
      <dc:date>2021-05-10T11:21:02Z</dc:date>
    </item>
    <item>
      <title>Re: CreateObject("Excel.Application") - Office365</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/createobject-quot-excel-application-quot-office365/m-p/10302460#M50007</link>
      <description>&lt;P&gt;I guess my error is still same as in Locals window value for excelApp is Nothing&lt;/P&gt;</description>
      <pubDate>Mon, 10 May 2021 12:05:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/createobject-quot-excel-application-quot-office365/m-p/10302460#M50007</guid>
      <dc:creator>floccipier</dc:creator>
      <dc:date>2021-05-10T12:05:17Z</dc:date>
    </item>
    <item>
      <title>Re: CreateObject("Excel.Application") - Office365</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/createobject-quot-excel-application-quot-office365/m-p/10303122#M50008</link>
      <description>&lt;P&gt;Remove this.&lt;/P&gt;
&lt;P&gt;Dim excelApp As New Excel.Application&lt;/P&gt;
&lt;P&gt;and it went ahead but now stopping at this line:&lt;/P&gt;</description>
      <pubDate>Mon, 10 May 2021 16:36:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/createobject-quot-excel-application-quot-office365/m-p/10303122#M50008</guid>
      <dc:creator>bradeneuropeArthur</dc:creator>
      <dc:date>2021-05-10T16:36:13Z</dc:date>
    </item>
    <item>
      <title>Re: CreateObject("Excel.Application") - Office365</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/createobject-quot-excel-application-quot-office365/m-p/10303318#M50009</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/473476"&gt;@bradeneuropeArthur&lt;/a&gt;&amp;nbsp;I am sorry I didn't understand..&lt;/P&gt;</description>
      <pubDate>Mon, 10 May 2021 18:18:35 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/createobject-quot-excel-application-quot-office365/m-p/10303318#M50009</guid>
      <dc:creator>floccipier</dc:creator>
      <dc:date>2021-05-10T18:18:35Z</dc:date>
    </item>
    <item>
      <title>Re: CreateObject("Excel.Application") - Office365</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/createobject-quot-excel-application-quot-office365/m-p/10303384#M50010</link>
      <description>&lt;P&gt;Try this:&lt;/P&gt;&lt;LI-CODE lang="general"&gt;Dim oExcelApp As Microsoft.Office.Interop.Excel.Application
Set oExcelApp = New Microsoft.Office.Interop.Excel.Application&lt;/LI-CODE&gt;&lt;P&gt;Also, do you have the reference turned on within the File menu / References... dialog in your VBA editor?&lt;/P&gt;&lt;P&gt;In iLogic, the first two lines would look like this to set up the references needed:&lt;/P&gt;&lt;LI-CODE lang="general"&gt;AddReference "Microsoft.Office.Interop.Excel.dll"
Imports Microsoft.Office.Interop.Excel&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If this solved your problem, or answered your question, please click &lt;SPAN style="background-color: green; color: white;"&gt;&lt;STRONG&gt;ACCEPT SOLUTION&lt;/STRONG&gt;&lt;/SPAN&gt;.&lt;BR /&gt;Or, if this helped you, please click (LIKE or KUDOS) &lt;SPAN&gt;&lt;span class="lia-unicode-emoji" title=":thumbs_up:"&gt;👍&lt;/span&gt;&lt;/SPAN&gt;.&lt;/P&gt;&lt;P&gt;If you want and have time, I would appreciate your Vote(s) for &lt;A href="https://forums.autodesk.com/t5/forums/recentpostspage/post-type/message/interaction-style/idea/user-id/7812054/" target="_blank"&gt;My IDEAS &lt;SPAN&gt;&lt;span class="lia-unicode-emoji" title=":light_bulb:"&gt;💡&lt;/span&gt;&lt;/SPAN&gt;&lt;/A&gt;or you can Explore &lt;A href="https://knowledge.autodesk.com/profile/LTSUSR7HXMSAE/articles" target="_blank"&gt;My CONTRIBUTIONS &lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 10 May 2021 18:51:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/createobject-quot-excel-application-quot-office365/m-p/10303384#M50010</guid>
      <dc:creator>WCrihfield</dc:creator>
      <dc:date>2021-05-10T18:51:56Z</dc:date>
    </item>
    <item>
      <title>Re: CreateObject("Excel.Application") - Office365</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/createobject-quot-excel-application-quot-office365/m-p/10304585#M50011</link>
      <description>&lt;P&gt;I mean use it this way:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="general"&gt;Changed below code 

    Dim excelApp As object 'Excel.Application
    Set excelApp = CreateObject("Excel.Application")

to&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;or if you have the excel references:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="general"&gt;Changed below code 

    Dim excelApp As Excel.Application
    Set excelApp = CreateObject("Excel.Application")

to&lt;/LI-CODE&gt;
&lt;P&gt;Late Binding vs Early Binding!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 11 May 2021 07:56:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/createobject-quot-excel-application-quot-office365/m-p/10304585#M50011</guid>
      <dc:creator>bradeneuropeArthur</dc:creator>
      <dc:date>2021-05-11T07:56:09Z</dc:date>
    </item>
    <item>
      <title>Re: CreateObject("Excel.Application") - Office365</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/createobject-quot-excel-application-quot-office365/m-p/10347178#M50012</link>
      <description>Thanks for this, I will check this later and will come back to you.</description>
      <pubDate>Fri, 28 May 2021 10:23:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/createobject-quot-excel-application-quot-office365/m-p/10347178#M50012</guid>
      <dc:creator>floccipier</dc:creator>
      <dc:date>2021-05-28T10:23:52Z</dc:date>
    </item>
    <item>
      <title>Re: CreateObject("Excel.Application") - Office365</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/createobject-quot-excel-application-quot-office365/m-p/10347181#M50013</link>
      <description>Thanks for this, I will check this later and will come back to you!</description>
      <pubDate>Fri, 28 May 2021 10:24:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/createobject-quot-excel-application-quot-office365/m-p/10347181#M50013</guid>
      <dc:creator>floccipier</dc:creator>
      <dc:date>2021-05-28T10:24:40Z</dc:date>
    </item>
    <item>
      <title>Re: CreateObject("Excel.Application") - Office365</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/createobject-quot-excel-application-quot-office365/m-p/10347437#M50014</link>
      <description>&lt;P&gt;Here is a VBA code routine that more thoroughly attempts to either Get or Create an instance of the Excel application, while avoiding potential errors, for use when you have your Reference turned on for the Excel Object Library.&amp;nbsp; This can be used as it is within your main code, or put into a Function of its own.&amp;nbsp; It also includes a Boolean variable that is meant to record whether or not Excel was already open when the routine started, which you can use at the end to judge whether to close the Excel application when your done with it.&lt;/P&gt;
&lt;P&gt;I put in a bunch of comment lines to help explain what's going on, for those not as familiar with VBA or this process.&lt;/P&gt;
&lt;LI-CODE lang="general"&gt;    Dim oExcel As Excel.Application
    Dim oXLWasOpen As Boolean 'False by default
    On Error Resume Next
    'try to get open instance of Excel Application
    Set oExcel = GetObject(, "Excel.Application") 'tries to retrieve running instance of Excel
    If Err = 0 Then
        'it found and retrieved an open instance of Excel
        oXLWasOpen = True 'so I know whether to close Excel at the end
        On Error GoTo 0 'resets error handling to normal
    ElseIf Err &amp;lt;&amp;gt; 0 Then
        'it failed to get an open instance of Excel, so now create one
        Err.Clear 'clear it so we know if another error happens
        'try to create an instance of Excel (Open Excel)
        Set oExcel = CreateObject("Excel.Application")
        If Err &amp;lt;&amp;gt; 0 Then
            'the attempt to create an instance of Excel failed too
            Call MsgBox("Failed to Get or Create Excel Application instance. Exiting.", , "")
            Exit Sub
        Else
            'it succeeded to create an instance of Excel (opened Excel)
            Err.Clear
            On Error GoTo 0 'resets error handling to normal
        End If
    End&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this solved your problem, or answered your question, please click &lt;SPAN style="background-color: green; color: white;"&gt;&lt;STRONG&gt;ACCEPT SOLUTION&lt;/STRONG&gt;&lt;/SPAN&gt;.&lt;BR /&gt;Or, if this helped you, please click (LIKE or KUDOS) &lt;SPAN&gt;&lt;span class="lia-unicode-emoji" title=":thumbs_up:"&gt;👍&lt;/span&gt;&lt;/SPAN&gt;.&lt;/P&gt;
&lt;P&gt;If you want and have time, I would appreciate your Vote(s) for &lt;A href="https://forums.autodesk.com/t5/forums/recentpostspage/post-type/message/interaction-style/idea/user-id/7812054/" target="_blank"&gt;My IDEAS &lt;SPAN&gt;&lt;span class="lia-unicode-emoji" title=":light_bulb:"&gt;💡&lt;/span&gt;&lt;/SPAN&gt;&lt;/A&gt;or you can Explore &lt;A href="https://knowledge.autodesk.com/profile/LTSUSR7HXMSAE/articles" target="_blank"&gt;My CONTRIBUTIONS &lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 28 May 2021 12:37:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/createobject-quot-excel-application-quot-office365/m-p/10347437#M50014</guid>
      <dc:creator>WCrihfield</dc:creator>
      <dc:date>2021-05-28T12:37:29Z</dc:date>
    </item>
    <item>
      <title>Re: CreateObject("Excel.Application") - Office365</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/createobject-quot-excel-application-quot-office365/m-p/10348014#M50015</link>
      <description>Thanks for this, really well explained. I need to get back to this part of work on Monday, I will check this detailed and original post and then Mark them. But I can already see by reading code that this is really detailed and helpful.&lt;BR /&gt;regards,&lt;BR /&gt;sam</description>
      <pubDate>Fri, 28 May 2021 15:44:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/createobject-quot-excel-application-quot-office365/m-p/10348014#M50015</guid>
      <dc:creator>floccipier</dc:creator>
      <dc:date>2021-05-28T15:44:15Z</dc:date>
    </item>
    <item>
      <title>Re: CreateObject("Excel.Application") - Office365</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/createobject-quot-excel-application-quot-office365/m-p/10471661#M50016</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/7812054"&gt;@WCrihfield&lt;/a&gt;&amp;nbsp;came to ask something about this and realised that I haven't even it solved because it did solve for the problem for long time. Yesterday even windows sent a notification of update and I updated it and since then now it is not working again.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Dim oExcel As Excel.Application&lt;BR /&gt;'Dim oExcel As Object&lt;BR /&gt;Dim oXLWasOpen As Boolean 'False by default&lt;BR /&gt;On Error Resume Next&lt;BR /&gt;'try to get open instance of Excel Application&lt;BR /&gt;Set oExcel = GetObject(, "Excel.Application") 'tries to retrieve running instance of Excel&lt;BR /&gt;If Err = 0 Then&lt;BR /&gt;'it found and retrieved an open instance of Excel&lt;BR /&gt;oXLWasOpen = True 'so I know whether to close Excel at the end&lt;BR /&gt;On Error GoTo 0 'resets error handling to normal&lt;BR /&gt;ElseIf Err &amp;lt;&amp;gt; 0 Then&lt;BR /&gt;'it failed to get an open instance of Excel, so now create one&lt;BR /&gt;Err.Clear 'clear it so we know if another error happens&lt;BR /&gt;'try to create an instance of Excel (Open Excel)&lt;BR /&gt;Set oExcel = CreateObject("Excel.Application")&lt;BR /&gt;If Err &amp;lt;&amp;gt; 0 Then&lt;BR /&gt;'the attempt to create an instance of Excel failed too&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;Call MsgBox("Failed to Get or Create Excel Application instance. Exiting.", , "")&lt;/FONT&gt;&lt;BR /&gt;Exit Sub&lt;BR /&gt;Else&lt;BR /&gt;'it succeeded to create an instance of Excel (opened Excel)&lt;BR /&gt;Err.Clear&lt;BR /&gt;On Error GoTo 0 'resets error handling to normal&lt;BR /&gt;End If&lt;BR /&gt;End If&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It just goes to message&amp;nbsp;&lt;FONT color="#FF0000"&gt;Failed to Get or Create Excel Application instance. Exiting &lt;FONT color="#000000"&gt;even if excel is running. Any idea how I can sort this please.&amp;nbsp;&lt;BR /&gt;regards,&amp;nbsp;&lt;BR /&gt;Sam&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Jul 2021 16:00:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/createobject-quot-excel-application-quot-office365/m-p/10471661#M50016</guid>
      <dc:creator>sam</dc:creator>
      <dc:date>2021-07-15T16:00:17Z</dc:date>
    </item>
    <item>
      <title>Re: CreateObject("Excel.Application") - Office365</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/createobject-quot-excel-application-quot-office365/m-p/10471774#M50017</link>
      <description>&lt;P&gt;Hi &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/6787200"&gt;@sam&lt;/a&gt;.&amp;nbsp; There seems to be a long and rich history of folks encountering similar problems while working with the Excel application from iLogic/VBA/VB.NET and other code.&amp;nbsp; There could be various reasons, and it's difficult to diagnose, especially remotely.&amp;nbsp; One common issue I see is when switching between older and newer Excel files, or when switching from using older Excel application to using newer Excel application.&amp;nbsp; Older Excel files used the ".xls" file extension, and newer Excel files default to the ".xlsx" file extension.&amp;nbsp; There seems to be some programming situation's where it seems like it will only work with files with the ".xls" file extension for some reason.&amp;nbsp; But you're not even trying to access a document yet, so that's not it.&amp;nbsp; In other scenarios, people had to either undo an update, reinstall or repair their Excel installation, or redo the update, because something must have gone wrong in the update.&amp;nbsp; If it can't find your Excel application, I'm afraid that's a problem above my skill level to provide a solution for.&amp;nbsp; There are some other ways to access the Excel application from a code standpoint, but I rather doubt they would help here.&lt;/P&gt;</description>
      <pubDate>Thu, 15 Jul 2021 16:27:06 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/createobject-quot-excel-application-quot-office365/m-p/10471774#M50017</guid>
      <dc:creator>WCrihfield</dc:creator>
      <dc:date>2021-07-15T16:27:06Z</dc:date>
    </item>
    <item>
      <title>Re: CreateObject("Excel.Application") - Office365</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/createobject-quot-excel-application-quot-office365/m-p/10474744#M50018</link>
      <description>Dim oExcelApp As Microsoft.Office.Interop.Excel.Application&lt;BR /&gt;Set oExcelApp = New Microsoft.Office.Interop.Excel.Application&lt;BR /&gt;&lt;BR /&gt;This one gives error literally on first line.</description>
      <pubDate>Fri, 16 Jul 2021 17:04:26 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/createobject-quot-excel-application-quot-office365/m-p/10474744#M50018</guid>
      <dc:creator>sam</dc:creator>
      <dc:date>2021-07-16T17:04:26Z</dc:date>
    </item>
    <item>
      <title>Re: CreateObject("Excel.Application") - Office365</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/createobject-quot-excel-application-quot-office365/m-p/10474745#M50019</link>
      <description>going to try this.</description>
      <pubDate>Fri, 16 Jul 2021 17:04:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/createobject-quot-excel-application-quot-office365/m-p/10474745#M50019</guid>
      <dc:creator>sam</dc:creator>
      <dc:date>2021-07-16T17:04:47Z</dc:date>
    </item>
    <item>
      <title>Re: CreateObject("Excel.Application") - Office365</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/createobject-quot-excel-application-quot-office365/m-p/10474767#M50020</link>
      <description>checking with this&lt;BR /&gt;&lt;BR /&gt;Dim excelApp As Excel.Application&lt;BR /&gt;Set excelApp = CreateObject("Excel.Application")&lt;BR /&gt;&lt;BR /&gt;and it gives same error as in original post.</description>
      <pubDate>Fri, 16 Jul 2021 17:19:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/createobject-quot-excel-application-quot-office365/m-p/10474767#M50020</guid>
      <dc:creator>sam</dc:creator>
      <dc:date>2021-07-16T17:19:39Z</dc:date>
    </item>
    <item>
      <title>Re: CreateObject("Excel.Application") - Office365</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/createobject-quot-excel-application-quot-office365/m-p/10474792#M50021</link>
      <description>&lt;P&gt;If you are using VBA, then double check to make sure your reference to the "Microsoft Excel 16.0 Object Library" is checked (turned on).&amp;nbsp; The "16.0" part may be different on your machine, because it has to do with what version it is.&amp;nbsp; To check this, within your VBA Editor screen, click on the Tools tab, then click on References....&amp;nbsp; Beware, these are set-up differently for document projects than they are for the main application project, so make sure you have the right VBA project selected (active) when you go into the References dialog.&amp;nbsp; (If your macro is in the Application project, make sure you click on the application project in the project explorer window, before you open the references dialog.)&amp;nbsp; In that references dialog, scroll down the list until you see an item with a similar name to the one I mentioned above, then make sure it has a check mark in its checkbox, then click the main OK button.&lt;/P&gt;</description>
      <pubDate>Fri, 16 Jul 2021 17:29:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/createobject-quot-excel-application-quot-office365/m-p/10474792#M50021</guid>
      <dc:creator>WCrihfield</dc:creator>
      <dc:date>2021-07-16T17:29:13Z</dc:date>
    </item>
    <item>
      <title>Re: CreateObject("Excel.Application") - Office365</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/createobject-quot-excel-application-quot-office365/m-p/10474942#M50022</link>
      <description>Thanks &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/7812054"&gt;@WCrihfield&lt;/a&gt; again for a quick reply.&lt;BR /&gt;reference for Excel is there, it was first thing that I check when did the OP.&lt;BR /&gt;&lt;BR /&gt;Another thing that I want to mention that I have a workflow from where I export some data from cad layout to excel and that rule in cad satarts something like this.&lt;BR /&gt;blic Sub SpitOutMG()&lt;BR /&gt;&lt;BR /&gt;Dim sset As AcadSelectionSet&lt;BR /&gt;Dim ent As AcadEntity&lt;BR /&gt;Dim Book1 As Object&lt;BR /&gt;Dim Sheet1 As Object&lt;BR /&gt;Dim xlApp As Object&lt;BR /&gt;Set xlApp = CreateObject("Excel.Application")&lt;BR /&gt;xlApp.Visible = True&lt;BR /&gt;Set Book1 = xlApp.Workbooks.Add()&lt;BR /&gt;Set Sheet1 = Book1.worksheets(1)&lt;BR /&gt;&lt;BR /&gt;and works perfectly even if there is no reference of "Microsoft Excel 16.0 Object Library" in AutoCad VBA library. so I took the lead and copy this portion in Inventor VBA&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Public Sub SpitOutMG()&lt;BR /&gt;&lt;BR /&gt;'Dim sset As AcadSelectionSet&lt;BR /&gt;'Dim ent As AcadEntity&lt;BR /&gt;Dim Book1 As Object&lt;BR /&gt;Dim Sheet1 As Object&lt;BR /&gt;Dim xlApp As Object&lt;BR /&gt;Set xlApp = CreateObject("Excel.Application")&lt;BR /&gt;xlApp.Visible = True&lt;BR /&gt;Set Book1 = xlApp.Workbooks.Add()&lt;BR /&gt;Set Sheet1 = Book1.Worksheets(1)&lt;BR /&gt;&lt;BR /&gt;Dim fcode(0) As Integer&lt;BR /&gt;Dim fdata(0) As Variant&lt;BR /&gt;Dim I As Integer&lt;BR /&gt;&lt;BR /&gt;End Sub&lt;BR /&gt;&lt;BR /&gt;and it actually worked and excel is initiated. What does this mean? only difference I noticed is this Sub is not part of UserForm code but in a separate module? I am bit lost here.&lt;BR /&gt;</description>
      <pubDate>Fri, 16 Jul 2021 18:38:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/createobject-quot-excel-application-quot-office365/m-p/10474942#M50022</guid>
      <dc:creator>sam</dc:creator>
      <dc:date>2021-07-16T18:38:19Z</dc:date>
    </item>
    <item>
      <title>Re: CreateObject("Excel.Application") - Office365</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/createobject-quot-excel-application-quot-office365/m-p/10474970#M50023</link>
      <description>&lt;P&gt;In your AutoCAD side VBA Editor, you're saying that you don't have that Excel reference set up within its References dialog, and your code there works OK accessing and using Excel right.&amp;nbsp; While there, with your AutoCAD side macro code open, if you select the term Workbooks, and right click over it and choose Definition from the right-click menu, does the Object Browser open up and show you that selected object within that Object Browser (recognizes its Type, a shows info about it)?&lt;/P&gt;</description>
      <pubDate>Fri, 16 Jul 2021 18:57:35 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/createobject-quot-excel-application-quot-office365/m-p/10474970#M50023</guid>
      <dc:creator>WCrihfield</dc:creator>
      <dc:date>2021-07-16T18:57:35Z</dc:date>
    </item>
    <item>
      <title>Re: CreateObject("Excel.Application") - Office365</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/createobject-quot-excel-application-quot-office365/m-p/10474986#M50024</link>
      <description>&lt;P&gt;Please have a look at attached video.&lt;BR /&gt;and if I select Workbooks term and select definition this is the error that I get.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sam_0-1626462591708.png" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/942385i53FDD5A08782C0E4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="sam_0-1626462591708.png" alt="sam_0-1626462591708.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Jul 2021 19:10:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/createobject-quot-excel-application-quot-office365/m-p/10474986#M50024</guid>
      <dc:creator>sam</dc:creator>
      <dc:date>2021-07-16T19:10:12Z</dc:date>
    </item>
  </channel>
</rss>

