<?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: iLogic Excel Hide / Close in Inventor Programming Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-excel-hide-close/m-p/3090300#M139944</link>
    <description>&lt;P&gt;Matt,&lt;/P&gt;&lt;P&gt;If you just need to read a value from the embedded workbook and assign the value to a parameter there is no need to open and close excel implicity.&lt;/P&gt;&lt;P&gt;You can use the ilogic function &amp;nbsp;GoExcel.FindRow to find the row in the worksheet&lt;/P&gt;&lt;P&gt;then use GoExcel.CurrentRowValue to assign the value to your Inventor parameter&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is a code sample which does that&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;GoExcel.FindRow&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT size="3"&gt;(&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT color="#008080" size="3"&gt;&lt;FONT color="#008080" size="3"&gt;"3rd Party:Embedding 4"&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="3"&gt;, &lt;/FONT&gt;&lt;FONT color="#008080" size="3"&gt;&lt;FONT color="#008080" size="3"&gt;"Sheet1"&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="3"&gt;, &lt;/FONT&gt;&lt;FONT color="#008080" size="3"&gt;&lt;FONT color="#008080" size="3"&gt;"bushing_mount_type"&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="3"&gt;, &lt;/FONT&gt;&lt;FONT color="#008080" size="3"&gt;&lt;FONT color="#008080" size="3"&gt;"="&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="3"&gt;, &lt;/FONT&gt;&lt;FONT color="#800000" size="3"&gt;&lt;FONT color="#800000" size="3"&gt;xvbushingmountstring&lt;/FONT&gt;&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT size="3"&gt;)&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;xv_flange_part_number&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT size="3"&gt;&lt;STRONG&gt;&lt;FONT size="3"&gt;= &lt;/FONT&gt;&lt;FONT color="#800080" size="3"&gt;&lt;FONT color="#800080" size="3"&gt;GoExcel.CurrentRowValue&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="3"&gt;(&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT color="#008080" size="3"&gt;&lt;FONT color="#008080" size="3"&gt;"flange_part_number"&lt;/FONT&gt;&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT size="3"&gt;)&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 13 Jul 2011 17:20:12 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2011-07-13T17:20:12Z</dc:date>
    <item>
      <title>iLogic Excel Hide / Close</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-excel-hide-close/m-p/3089366#M139943</link>
      <description>&lt;P&gt;I have been trying to get a cell from an embedded spreadsheet but my problem is that i cannot get excel to be hidden or even close when it's done.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I want it to do is simply retrieve the cell value without any windows opening; i just want it to work in the background.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The code i'm currently using is:&lt;/P&gt;&lt;P&gt;﻿﻿﻿﻿&lt;/P&gt;&lt;P&gt;ThisApplication.SilentOperation = True ' Doesn't work&lt;BR /&gt;GoExcel.DisplayAlerts = False&lt;BR /&gt;mystr = GoExcel.CellValue("3rd Party:Embedding 2", "Bearing Housings", "L5")&lt;BR /&gt;GoExcel.Close '&amp;nbsp; This Doesn't work&lt;BR /&gt;MsgBox (mystr)﻿&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance, Matt.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jul 2011 03:43:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-excel-hide-close/m-p/3089366#M139943</guid>
      <dc:creator>matt_jlt</dc:creator>
      <dc:date>2011-07-13T03:43:19Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic Excel Hide / Close</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-excel-hide-close/m-p/3090300#M139944</link>
      <description>&lt;P&gt;Matt,&lt;/P&gt;&lt;P&gt;If you just need to read a value from the embedded workbook and assign the value to a parameter there is no need to open and close excel implicity.&lt;/P&gt;&lt;P&gt;You can use the ilogic function &amp;nbsp;GoExcel.FindRow to find the row in the worksheet&lt;/P&gt;&lt;P&gt;then use GoExcel.CurrentRowValue to assign the value to your Inventor parameter&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is a code sample which does that&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;GoExcel.FindRow&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT size="3"&gt;(&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT color="#008080" size="3"&gt;&lt;FONT color="#008080" size="3"&gt;"3rd Party:Embedding 4"&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="3"&gt;, &lt;/FONT&gt;&lt;FONT color="#008080" size="3"&gt;&lt;FONT color="#008080" size="3"&gt;"Sheet1"&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="3"&gt;, &lt;/FONT&gt;&lt;FONT color="#008080" size="3"&gt;&lt;FONT color="#008080" size="3"&gt;"bushing_mount_type"&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="3"&gt;, &lt;/FONT&gt;&lt;FONT color="#008080" size="3"&gt;&lt;FONT color="#008080" size="3"&gt;"="&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="3"&gt;, &lt;/FONT&gt;&lt;FONT color="#800000" size="3"&gt;&lt;FONT color="#800000" size="3"&gt;xvbushingmountstring&lt;/FONT&gt;&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT size="3"&gt;)&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;xv_flange_part_number&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT size="3"&gt;&lt;STRONG&gt;&lt;FONT size="3"&gt;= &lt;/FONT&gt;&lt;FONT color="#800080" size="3"&gt;&lt;FONT color="#800080" size="3"&gt;GoExcel.CurrentRowValue&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="3"&gt;(&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT color="#008080" size="3"&gt;&lt;FONT color="#008080" size="3"&gt;"flange_part_number"&lt;/FONT&gt;&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT size="3"&gt;)&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jul 2011 17:20:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-excel-hide-close/m-p/3090300#M139944</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-07-13T17:20:12Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic Excel Hide / Close</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-excel-hide-close/m-p/3090920#M139945</link>
      <description>&lt;P&gt;Hi swordmaster, I wasn;t trying to open excel just get the value for that cell, Thanks for helping, I tried your code but get the same problem of excel opening.&lt;/P&gt;&lt;P&gt;Also the CurrentRowValue doesn't work for me as i have many values on each row which is why I was trying to use the get cell value. There has to be something i'm doing wrong.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm using Inventor 2012 &amp;amp; Office 2007 on Windows XP Pro 64 bit.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks, Matt.&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jul 2011 01:05:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-excel-hide-close/m-p/3090920#M139945</guid>
      <dc:creator>matt_jlt</dc:creator>
      <dc:date>2011-07-14T01:05:52Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic Excel Hide / Close</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-excel-hide-close/m-p/3090950#M139946</link>
      <description>&lt;P&gt;Matt,&lt;/P&gt;&lt;P&gt;"Also the CurrentRowValue doesn't work for me as i have many values on each row which is why I was trying to use the get cell value"&lt;/P&gt;&lt;P&gt;If i understand your meaning, currentrowvalue will work for you, you can include multiple arguments to determine the correct row&lt;/P&gt;&lt;P&gt;GoExcel.FindRow&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT size="3"&gt;(&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT color="#008080" size="3"&gt;&lt;FONT color="#008080" size="3"&gt;"3rd Party:Embedding 4"&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="3"&gt;, &lt;/FONT&gt;&lt;FONT color="#008080" size="3"&gt;&lt;FONT color="#008080" size="3"&gt;"Sheet1"&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="3"&gt;, &lt;/FONT&gt;&lt;FONT color="#008080" size="3"&gt;&lt;FONT color="#008080" size="3"&gt;"column1"&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="3"&gt;, &lt;/FONT&gt;&lt;FONT color="#008080" size="3"&gt;&lt;FONT color="#008080" size="3"&gt;"="&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="3"&gt;, 1, "column2", "&amp;gt;" 3&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT size="3"&gt;)&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT size="3"&gt;does that work for you?&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jul 2011 01:58:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-excel-hide-close/m-p/3090950#M139946</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-07-14T01:58:38Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic Excel Hide / Close</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-excel-hide-close/m-p/3090968#M139947</link>
      <description>&lt;P&gt;Sorry, I didn't explain myself very well.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can get your code to work but it does not do what i require and excel still stays open even after the function is complete; my problem is not with the getting cell value because my existing code (below) works. My problem is that excel seems to open when any "GoExcel" functions are run and it does not close when it's finished, it just leaves a blank excel window running.&lt;/P&gt;&lt;P&gt;And by blank i mean that there is no workbook/spreadsheet open.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;mystr = GoExcel.CellValue("3rd Party:Embedding 2", "Bearing Housings", "L5")﻿&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is very frustrating as i thought it would be a simple thing to do.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Onve again, thanks for your help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards, Matt.&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jul 2011 02:47:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-excel-hide-close/m-p/3090968#M139947</guid>
      <dc:creator>matt_jlt</dc:creator>
      <dc:date>2011-07-14T02:47:37Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic Excel Hide / Close</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-excel-hide-close/m-p/3092014#M139948</link>
      <description>&lt;P&gt;Matt,&lt;/P&gt;&lt;P&gt;Ok i understand your problem now. That is strange behaviour i use this code frequently with no issues &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;How did you embedd the workbook?&lt;/P&gt;&lt;P&gt;Unfortunately i am using INV2009 so i cannot recreate your problem. However if you wish you could save the excel as a excel2000 file and post it here. I could then do some testing.&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jul 2011 18:38:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-excel-hide-close/m-p/3092014#M139948</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-07-14T18:38:39Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic Excel Hide / Close</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-excel-hide-close/m-p/3092568#M139949</link>
      <description>&lt;P&gt;Good news, and bad new.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Good news is that I worked out the problem. I forgot that i have been using a macro enabled spreadsheet ( I made it months ago). I got inventor to embed it by selecting the embed option before changing the filetype to "*All Filetypes", then inventor will take a minute to process and recognise as a spreadsheet but then it will import like a normal one.&lt;/P&gt;&lt;P&gt;It will work fine even as a macro enabled spreadsheet until you actually add some macros in there, this is where the problem is coming from. As soon as some vba is added, this is when you get that stupid excel window staying open.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Bad news is it looks like i'm stuck with this until Autodesk fixes it i suppose.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It didn't occur to me that my spreadsheet was the problem and not inventor until you pointed it out to me, thanks swordmaster. Sorry i've given you a bit of a runaround.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks again, Matt.&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jul 2011 05:11:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-excel-hide-close/m-p/3092568#M139949</guid>
      <dc:creator>matt_jlt</dc:creator>
      <dc:date>2011-07-15T05:11:00Z</dc:date>
    </item>
  </channel>
</rss>

