<?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: VBA - Save Excel workbook as JMP data table in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/VBA-Save-Excel-workbook-as-JMP-data-table/m-p/14458#M13496</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK, I got it to work:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dim app As JMP.Application&lt;/P&gt;&lt;P&gt;Dim doc As JMP.Document&lt;/P&gt;&lt;P&gt;'Start JMP&lt;/P&gt;&lt;P&gt;Set app = CreateObject("JMP.Application")&lt;/P&gt;&lt;P&gt;app.Visible = True&lt;/P&gt;&lt;P&gt;'Open Excel workbook and save as JMP data table&lt;/P&gt;&lt;P&gt;Set doc = app.OpenDocument("C:\jmp\Data.xlsx")&lt;/P&gt;&lt;P&gt;doc.SaveAs ("C:\jmp\Data.jmp")&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 25 Sep 2015 19:20:27 GMT</pubDate>
    <dc:creator>jb</dc:creator>
    <dc:date>2015-09-25T19:20:27Z</dc:date>
    <item>
      <title>VBA - Save Excel workbook as JMP data table</title>
      <link>https://community.jmp.com/t5/Discussions/VBA-Save-Excel-workbook-as-JMP-data-table/m-p/14457#M13495</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, I'm familiar with Excel VBA but new to JMP scripting. I'm currently using JMP 11.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'd like to open an Excel workbook (with a single worksheet) and save it as a JMP data table, so I can run a JMP analysis on it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do I reference the unsaved JMP data table created by this VBA code?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;Dim app As JMP.Application&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;Dim doc As JMP.Document&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;Dim dt&amp;nbsp; As JMP.DataTable&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="color: #008000; font-family: courier new,courier;"&gt;'Start JMP&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;Set app = CreateObject("JMP.Application")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;app.Visible = True&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #008000; font-family: courier new,courier;"&gt;'Open Excel workbook containing single sheet of data&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;app.OpenDocument ("C:\jmp\Data.xlsx")&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I prefix the last line with "dt = ", I get an error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestions would be appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Sep 2015 17:57:03 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/VBA-Save-Excel-workbook-as-JMP-data-table/m-p/14457#M13495</guid>
      <dc:creator>jb</dc:creator>
      <dc:date>2015-09-25T17:57:03Z</dc:date>
    </item>
    <item>
      <title>Re: VBA - Save Excel workbook as JMP data table</title>
      <link>https://community.jmp.com/t5/Discussions/VBA-Save-Excel-workbook-as-JMP-data-table/m-p/14458#M13496</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK, I got it to work:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dim app As JMP.Application&lt;/P&gt;&lt;P&gt;Dim doc As JMP.Document&lt;/P&gt;&lt;P&gt;'Start JMP&lt;/P&gt;&lt;P&gt;Set app = CreateObject("JMP.Application")&lt;/P&gt;&lt;P&gt;app.Visible = True&lt;/P&gt;&lt;P&gt;'Open Excel workbook and save as JMP data table&lt;/P&gt;&lt;P&gt;Set doc = app.OpenDocument("C:\jmp\Data.xlsx")&lt;/P&gt;&lt;P&gt;doc.SaveAs ("C:\jmp\Data.jmp")&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Sep 2015 19:20:27 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/VBA-Save-Excel-workbook-as-JMP-data-table/m-p/14458#M13496</guid>
      <dc:creator>jb</dc:creator>
      <dc:date>2015-09-25T19:20:27Z</dc:date>
    </item>
    <item>
      <title>Re: VBA - Save Excel workbook as JMP data table</title>
      <link>https://community.jmp.com/t5/Discussions/VBA-Save-Excel-workbook-as-JMP-data-table/m-p/14459#M13497</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You should be able to do:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;doc = &lt;SPAN style="font-family: courier new,courier;"&gt;app.OpenDocument ("C:\jmp\Data.xlsx")&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;dt = doc.GetDataTable();&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;The sample programs included with your JMP install can help you, the Data Table sample in particular.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;Brian Corcoran&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;JMP Development&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Sep 2015 19:27:51 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/VBA-Save-Excel-workbook-as-JMP-data-table/m-p/14459#M13497</guid>
      <dc:creator>briancorcoran</dc:creator>
      <dc:date>2015-09-25T19:27:51Z</dc:date>
    </item>
    <item>
      <title>Re: VBA - Save Excel workbook as JMP data table</title>
      <link>https://community.jmp.com/t5/Discussions/VBA-Save-Excel-workbook-as-JMP-data-table/m-p/14460#M13498</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Super easy to do in JSL.&amp;nbsp; Here is some example code for one way to approach this.&amp;nbsp; Copy the code into a new JSL window (under File &amp;gt; New...) and click the run script at the top of the window.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin: 0px; font-size: 12px; line-height: normal; font-family: Courier; color: #032ce4; padding-left: 30px;"&gt;Names Default to Here&lt;SPAN style="color: #000000;"&gt;&lt;STRONG&gt;(&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #009193;"&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #011993;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0px; font-size: 12px; line-height: normal; font-family: Courier; min-height: 14px; padding-left: 30px;"&gt;&lt;/P&gt;&lt;P style="margin: 0px; font-size: 12px; line-height: normal; font-family: Courier; padding-left: 30px;"&gt;dt &lt;SPAN style="color: #011993;"&gt;=&lt;/SPAN&gt; &lt;SPAN style="color: #032ce4;"&gt;Open&lt;/SPAN&gt;&lt;STRONG&gt;()&lt;/STRONG&gt;&lt;SPAN style="color: #011993;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P style="margin: 0px; font-size: 12px; line-height: normal; font-family: Courier; color: #942193; padding-left: 30px;"&gt;&lt;SPAN style="color: #000000;"&gt;dt &lt;/SPAN&gt;&lt;SPAN style="color: #011993;"&gt;&amp;lt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #011993;"&gt;&lt;STRONG&gt;Save As&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;&lt;STRONG&gt;(&lt;/STRONG&gt;&lt;/SPAN&gt;"Excel Data.xlsx"&lt;SPAN style="color: #000000;"&gt;&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #011993;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0px; font-size: 12px; line-height: normal; font-family: Courier; color: #942193; padding-left: 30px;"&gt;&lt;SPAN style="color: #011993;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0px; font-size: 12px; line-height: normal; font-family: Courier; color: #942193;"&gt;&lt;SPAN style="color: #575757; font-size: 13px; font-family: arial, helvetica, sans-serif; line-height: 20px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0px; font-size: 12px; line-height: normal; font-family: Courier; color: #942193;"&gt;&lt;SPAN style="color: #575757; font-size: 13px; font-family: arial, helvetica, sans-serif; line-height: 20px;"&gt;Hope that helps you out!&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0px; font-size: 12px; line-height: normal; font-family: Courier; color: #942193;"&gt;&lt;SPAN style="color: #575757; font-size: 13px; font-family: arial, helvetica, sans-serif; line-height: 20px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0px; font-size: 12px; line-height: normal; font-family: Courier; color: #942193;"&gt;&lt;SPAN style="color: #575757; font-size: 13px; font-family: arial, helvetica, sans-serif; line-height: 20px;"&gt;M&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Sep 2015 19:29:47 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/VBA-Save-Excel-workbook-as-JMP-data-table/m-p/14460#M13498</guid>
      <dc:creator>MikeD_Anderson</dc:creator>
      <dc:date>2015-09-25T19:29:47Z</dc:date>
    </item>
    <item>
      <title>Re: VBA - Save Excel workbook as JMP data table</title>
      <link>https://community.jmp.com/t5/Discussions/VBA-Save-Excel-workbook-as-JMP-data-table/m-p/14461#M13499</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, Brian. This is was just what I needed.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Sep 2015 15:38:00 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/VBA-Save-Excel-workbook-as-JMP-data-table/m-p/14461#M13499</guid>
      <dc:creator>jb</dc:creator>
      <dc:date>2015-09-28T15:38:00Z</dc:date>
    </item>
  </channel>
</rss>

