<?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 Macro Code in Autodesk Inventor? in Inventor Programming Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-forum/macro-code-in-autodesk-inventor/m-p/3568534#M135178</link>
    <description>&lt;P&gt;I’m kinda new to Macros and VBA in Autodesk Inventor. My code writing skills are kind of embarrassing and I would appreciate any help anyone can give me.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I guess I will start by explaining what I want to do:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Open an embedded (3rd Party Excel) spreadsheet in Autodesk Inventor. When the embedded file is in inventor it’s called Embedding 5. After the file has been open the name changes to 'Worksheet in “file Name”.xls'.&lt;/LI&gt;&lt;LI&gt;After the excel file has opened, I would like to run two separate macros that are embedded in the excel spreadsheet. The macros are called CreatePDFImperial and CreatePDFMetric. They make two separate PDF’s and files them in a specific location. The macros in excel run exactly the way they are supposed to. (If needed I can run the excel macros in excel when file is opened)&lt;/LI&gt;&lt;LI&gt;The next step would be for the excel file to automatically save itself.&lt;/LI&gt;&lt;LI&gt;&amp;nbsp;The last step is to close the excel file&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My attempt at this code:&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;Sub OpenAndClose()&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;'&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;' OpenAndClose Macro&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;'&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;' Keyboard Shortcut: Ctrl+w&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;'&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Workbooks.Open FileName:= _&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; GoExcel.Open("3rd Party:Embedding 5", "Sheet2")&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Application.Run "'Worksheet in TEST MO HDR.xls'!CreatePDFImperial"&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Application.Run "'Worksheet in TEST MO HDR.xls'!CreatePDFMetric"&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ActiveWorkbook.Save&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Workbooks.Close FileName:= _&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; GoExcel.Close("3rd Party:Embedding 5", "Sheet2")&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;End Sub&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;Thanks to anyone that can take the time to point me in the right direction.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 07 Aug 2012 16:52:08 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2012-08-07T16:52:08Z</dc:date>
    <item>
      <title>Macro Code in Autodesk Inventor?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/macro-code-in-autodesk-inventor/m-p/3568534#M135178</link>
      <description>&lt;P&gt;I’m kinda new to Macros and VBA in Autodesk Inventor. My code writing skills are kind of embarrassing and I would appreciate any help anyone can give me.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I guess I will start by explaining what I want to do:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Open an embedded (3rd Party Excel) spreadsheet in Autodesk Inventor. When the embedded file is in inventor it’s called Embedding 5. After the file has been open the name changes to 'Worksheet in “file Name”.xls'.&lt;/LI&gt;&lt;LI&gt;After the excel file has opened, I would like to run two separate macros that are embedded in the excel spreadsheet. The macros are called CreatePDFImperial and CreatePDFMetric. They make two separate PDF’s and files them in a specific location. The macros in excel run exactly the way they are supposed to. (If needed I can run the excel macros in excel when file is opened)&lt;/LI&gt;&lt;LI&gt;The next step would be for the excel file to automatically save itself.&lt;/LI&gt;&lt;LI&gt;&amp;nbsp;The last step is to close the excel file&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My attempt at this code:&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;Sub OpenAndClose()&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;'&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;' OpenAndClose Macro&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;'&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;' Keyboard Shortcut: Ctrl+w&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;'&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Workbooks.Open FileName:= _&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; GoExcel.Open("3rd Party:Embedding 5", "Sheet2")&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Application.Run "'Worksheet in TEST MO HDR.xls'!CreatePDFImperial"&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Application.Run "'Worksheet in TEST MO HDR.xls'!CreatePDFMetric"&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ActiveWorkbook.Save&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Workbooks.Close FileName:= _&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; GoExcel.Close("3rd Party:Embedding 5", "Sheet2")&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;End Sub&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;Thanks to anyone that can take the time to point me in the right direction.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Aug 2012 16:52:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/macro-code-in-autodesk-inventor/m-p/3568534#M135178</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-08-07T16:52:08Z</dc:date>
    </item>
    <item>
      <title>Re: Macro Code in Autodesk Inventor?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/macro-code-in-autodesk-inventor/m-p/3568546#M135179</link>
      <description>&lt;P&gt;Hi jddickson,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can post and search for customization code here:&lt;/P&gt;&lt;P&gt;&lt;A target="_blank" href="http://forums.autodesk.com/t5/Autodesk-Inventor-Customization/bd-p/120"&gt;http://forums.autodesk.com/t5/Autodesk-Inventor-Customization/bd-p/120&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope this helps.&lt;BR /&gt;Best of luck to you in all of your Inventor pursuits,&lt;BR /&gt;Curtis&lt;BR /&gt;&lt;A target="_blank" href="http://inventortrenches.blogspot.com"&gt;http://inventortrenches.blogspot.com&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Aug 2012 16:54:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/macro-code-in-autodesk-inventor/m-p/3568546#M135179</guid>
      <dc:creator>Curtis_W</dc:creator>
      <dc:date>2012-08-07T16:54:24Z</dc:date>
    </item>
    <item>
      <title>Re: Macro Code in Autodesk Inventor?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/macro-code-in-autodesk-inventor/m-p/3573096#M135181</link>
      <description>&lt;P&gt;Hi Dickson,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have moved this thread to Inventor customization forum. This is the appropriate place to get answers on customizing Inventor with macros.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope it helps. Do let us know, if you have any concern.&lt;/P&gt;</description>
      <pubDate>Fri, 10 Aug 2012 01:27:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/macro-code-in-autodesk-inventor/m-p/3573096#M135181</guid>
      <dc:creator>VinodBalasubramanian</dc:creator>
      <dc:date>2012-08-10T01:27:04Z</dc:date>
    </item>
  </channel>
</rss>

