<?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: populating vba combobox with spreadsheet range name in Inventor Programming Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-forum/populating-vba-combobox-with-spreadsheet-range-name/m-p/9360212#M69919</link>
    <description>&lt;P&gt;If you have the excel sheet linked then something like this&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;'Define the Inventor application and OLE Desriptors&lt;BR /&gt;Dim oApp As Inventor.Application&lt;BR /&gt;Set oApp = ThisApplication&lt;BR /&gt;Dim oOleRef As ReferencedOLEFileDescriptor&lt;BR /&gt;Set oOleRef = oApp.ActiveDocument.ReferencedOLEFileDescriptors.Item(1)&lt;/P&gt;&lt;P&gt;'Define the WorkBook and WorkSheet(s)&lt;BR /&gt;Dim oWB As Excel.Workbook&lt;BR /&gt;Call oOleRef.Activate(kEditOpenOLEVerb, oWB)&lt;BR /&gt;Dim oSheet_BData As WorkSheet&lt;BR /&gt;Set oSheet_BData = oWB.Worksheets.Item("Belt_Data")&lt;/P&gt;</description>
    <pubDate>Thu, 05 Mar 2020 12:01:00 GMT</pubDate>
    <dc:creator>asmenut</dc:creator>
    <dc:date>2020-03-05T12:01:00Z</dc:date>
    <item>
      <title>populating vba combobox with spreadsheet range name</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/populating-vba-combobox-with-spreadsheet-range-name/m-p/9126634#M69916</link>
      <description>&lt;P&gt;How can I use a spreadsheet range name to populate a combobox&amp;nbsp; using vba?&lt;/P&gt;&lt;P&gt;i.e. spreadsheet range name = "test range"&lt;/P&gt;&lt;P&gt;combobox name = "cb_testRange"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Nov 2019 21:28:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/populating-vba-combobox-with-spreadsheet-range-name/m-p/9126634#M69916</guid>
      <dc:creator>MCCJohnPetty</dc:creator>
      <dc:date>2019-11-04T21:28:24Z</dc:date>
    </item>
    <item>
      <title>Re: populating vba combobox with spreadsheet range name</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/populating-vba-combobox-with-spreadsheet-range-name/m-p/9128610#M69917</link>
      <description>&lt;P&gt;I figured it out (I can't seem to fiqure out the Range name technique but as long as I have a range to work with, it goes like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Private Sub UserForm_initialize()&lt;/P&gt;&lt;P&gt;'Define the Inventor application and OLE Desriptors&lt;BR /&gt;Dim oApp As Inventor.Application&lt;BR /&gt;Set oApp = ThisApplication&lt;BR /&gt;Dim oOleRef As ReferencedOLEFileDescriptor&lt;BR /&gt;Set oOleRef = oApp.ActiveDocument.ReferencedOLEFileDescriptors.Item(1)&lt;/P&gt;&lt;P&gt;'Define the WorkBook and WorkSheet(s)&lt;BR /&gt;Dim oWB As Excel.Workbook&lt;BR /&gt;Call oOleRef.Activate(kEditOpenOLEVerb, oWB)&lt;BR /&gt;Dim oSheet1 As WorkSheet&lt;BR /&gt;Set oSheet1 = oWB.Worksheets.Item("Belt_Data")&lt;/P&gt;&lt;P&gt;'Populate the Combo Box&lt;BR /&gt;cb_BSeries.List = oSheet1.Range("A4:A30").Value&lt;/P&gt;&lt;P&gt;End Sub&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Nov 2019 16:25:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/populating-vba-combobox-with-spreadsheet-range-name/m-p/9128610#M69917</guid>
      <dc:creator>asmenut</dc:creator>
      <dc:date>2019-11-05T16:25:16Z</dc:date>
    </item>
    <item>
      <title>Re: populating vba combobox with spreadsheet range name</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/populating-vba-combobox-with-spreadsheet-range-name/m-p/9359651#M69918</link>
      <description>&lt;P&gt;how do you specify the spreadsheet file?&lt;/P&gt;</description>
      <pubDate>Thu, 05 Mar 2020 07:03:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/populating-vba-combobox-with-spreadsheet-range-name/m-p/9359651#M69918</guid>
      <dc:creator>jR0sal3s</dc:creator>
      <dc:date>2020-03-05T07:03:48Z</dc:date>
    </item>
    <item>
      <title>Re: populating vba combobox with spreadsheet range name</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/populating-vba-combobox-with-spreadsheet-range-name/m-p/9360212#M69919</link>
      <description>&lt;P&gt;If you have the excel sheet linked then something like this&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;'Define the Inventor application and OLE Desriptors&lt;BR /&gt;Dim oApp As Inventor.Application&lt;BR /&gt;Set oApp = ThisApplication&lt;BR /&gt;Dim oOleRef As ReferencedOLEFileDescriptor&lt;BR /&gt;Set oOleRef = oApp.ActiveDocument.ReferencedOLEFileDescriptors.Item(1)&lt;/P&gt;&lt;P&gt;'Define the WorkBook and WorkSheet(s)&lt;BR /&gt;Dim oWB As Excel.Workbook&lt;BR /&gt;Call oOleRef.Activate(kEditOpenOLEVerb, oWB)&lt;BR /&gt;Dim oSheet_BData As WorkSheet&lt;BR /&gt;Set oSheet_BData = oWB.Worksheets.Item("Belt_Data")&lt;/P&gt;</description>
      <pubDate>Thu, 05 Mar 2020 12:01:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/populating-vba-combobox-with-spreadsheet-range-name/m-p/9360212#M69919</guid>
      <dc:creator>asmenut</dc:creator>
      <dc:date>2020-03-05T12:01:00Z</dc:date>
    </item>
    <item>
      <title>Re: populating vba combobox with spreadsheet range name</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/populating-vba-combobox-with-spreadsheet-range-name/m-p/9362174#M69920</link>
      <description>&lt;P&gt;how would it know which and where the excel file that contains the data? I don't see any directory here..my point is that, the list box/combo box will show data derived from an excel file.&lt;/P&gt;</description>
      <pubDate>Fri, 06 Mar 2020 04:51:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/populating-vba-combobox-with-spreadsheet-range-name/m-p/9362174#M69920</guid>
      <dc:creator>jR0sal3s</dc:creator>
      <dc:date>2020-03-06T04:51:36Z</dc:date>
    </item>
    <item>
      <title>Re: populating vba combobox with spreadsheet range name</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/populating-vba-combobox-with-spreadsheet-range-name/m-p/9362720#M69921</link>
      <description>&lt;DIV class="lia-message-author-with-avatar"&gt;&lt;SPAN class="UserName lia-user-name lia-user-rank-Enthusiast lia-component-message-view-widget-author-username"&gt;&lt;SPAN class=""&gt;&lt;FONT face="Artifakt" color="#444444"&gt;Question: Are you linking or embedding your spreadsheet, or are you trying to access your workbook from outside inventor?&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="lia-message-author-with-avatar"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="lia-message-author-with-avatar"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If you are linking/embedding your spreadsheet, you don't need to call it explicitly, since it is part of your Inventor file. T&lt;/SPAN&gt;&lt;SPAN&gt;he attached vba form and code should get you going.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If you are trying to access excel outside of your inventor part, Foxrid3r posted a nice snippet thet explains how to access excel as it's file name:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://forums.autodesk.com/t5/inventor-customization/excel-vba-to-drive-inventor/td-p/6559926" target="_blank"&gt;https://forums.autodesk.com/t5/inventor-customization/excel-vba-to-drive-inventor/td-p/6559926&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Hope this helps&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Mar 2020 12:05:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/populating-vba-combobox-with-spreadsheet-range-name/m-p/9362720#M69921</guid>
      <dc:creator>asmenut</dc:creator>
      <dc:date>2020-03-06T12:05:16Z</dc:date>
    </item>
    <item>
      <title>Re: populating vba combobox with spreadsheet range name</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/populating-vba-combobox-with-spreadsheet-range-name/m-p/9364055#M69922</link>
      <description>&lt;P&gt;Sweet...this is what i am looking for...Thanks a lot!.&lt;/P&gt;</description>
      <pubDate>Fri, 06 Mar 2020 22:43:06 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/populating-vba-combobox-with-spreadsheet-range-name/m-p/9364055#M69922</guid>
      <dc:creator>jR0sal3s</dc:creator>
      <dc:date>2020-03-06T22:43:06Z</dc:date>
    </item>
  </channel>
</rss>

