<?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: Excel VBA to automate JMP in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Excel-VBA-to-automate-JMP/m-p/36983#M21705</link>
    <description>&lt;P&gt;no problem, thanks a lot for your help.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 09 Mar 2017 14:02:37 GMT</pubDate>
    <dc:creator>KL</dc:creator>
    <dc:date>2017-03-09T14:02:37Z</dc:date>
    <item>
      <title>Excel VBA to automate JMP</title>
      <link>https://community.jmp.com/t5/Discussions/Excel-VBA-to-automate-JMP/m-p/36912#M21662</link>
      <description>&lt;P&gt;Hi Folks, i am trying to run JMP time series analysis from excel VBA.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;below is the codes&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sub LData()&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Dim myjmp As JMP.Application&lt;BR /&gt;Dim jmp_doc As JMP.Document&lt;BR /&gt;Dim jmp_BL As JMP.DataTable&lt;BR /&gt;Dim jmp_dt As JMP.DataTable&lt;BR /&gt;Dim jmp_dtFinal As JMP.DataTable&lt;BR /&gt;Dim jmpstr As String&lt;BR /&gt;Set myjmp = CreateObject("JMP.Application")&lt;BR /&gt;myjmp.Visible = True&lt;/P&gt;&lt;P&gt;Set jmp_doc = myjmp.OpenDocument("C:\Data_Doc1.xlsx")&lt;BR /&gt;Set jmp_BL = jmp_doc.GetDataTable&lt;/P&gt;&lt;P&gt;Dim TS As JMP.TimeSeries&lt;BR /&gt;Set TS = jmp_doc.CreateTimeSeries()&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Dim Cont As JMP.timeSeriesConstraintConstants&lt;BR /&gt;Winter = tsConstraintZeroToOne&lt;/P&gt;&lt;P&gt;Dim Modd As JMP.timeSeriesModelConstants&lt;BR /&gt;Modd = tsModelWinters&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;TS.LaunchAddYSeries ("Sell")&lt;BR /&gt;TS.LaunchAddNumAutoCorrLags (25)&lt;BR /&gt;TS.Launch&lt;/P&gt;&lt;P&gt;Call TS.SmoothingModel(Modd, Winters)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;End sub&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;it gives me a error message in JMP&lt;/P&gt;&lt;P&gt;unknown operation&lt;BR /&gt;Seasonal model needs numeric argument: periods per season&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i did not have the option to key in periods per season when i was doing up Call.TS.SmoothingModel(Modd,Winters)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;need your help to enlighten me what i am missing&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks a lot in advance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers.&lt;/P&gt;&lt;P&gt;Kenny&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Mar 2017 13:42:50 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Excel-VBA-to-automate-JMP/m-p/36912#M21662</guid>
      <dc:creator>KL</dc:creator>
      <dc:date>2017-03-08T13:42:50Z</dc:date>
    </item>
    <item>
      <title>Re: Excel VBA to automate JMP</title>
      <link>https://community.jmp.com/t5/Discussions/Excel-VBA-to-automate-JMP/m-p/36954#M21683</link>
      <description>&lt;P&gt;Can you produce the analysis that you desire using JMP's Time Series dialogs? &amp;nbsp;If so, can you post the script from a successful analysis here (report Red Triangle-&amp;gt;Save Script-&amp;gt;To Script Window).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Brian Corcoran&lt;/P&gt;
&lt;P&gt;JMP Development&lt;/P&gt;</description>
      <pubDate>Wed, 08 Mar 2017 18:15:02 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Excel-VBA-to-automate-JMP/m-p/36954#M21683</guid>
      <dc:creator>briancorcoran</dc:creator>
      <dc:date>2017-03-08T18:15:02Z</dc:date>
    </item>
    <item>
      <title>Re: Excel VBA to automate JMP</title>
      <link>https://community.jmp.com/t5/Discussions/Excel-VBA-to-automate-JMP/m-p/36970#M21694</link>
      <description>&lt;P&gt;Time Series(&lt;BR /&gt;Y( :Sell ),&lt;BR /&gt;Number of Forecast Periods( 12 ),&lt;BR /&gt;Winters Method( 48, Zero to One, Confidence Intervals( 0.8 ) ),&lt;BR /&gt;SendToReport(&lt;BR /&gt;Dispatch(&lt;BR /&gt;{"Model Comparison"},&lt;BR /&gt;"2",&lt;BR /&gt;ScaleBox,&lt;BR /&gt;{Add Ref Line( 0, Dashed, "Black" )}&lt;BR /&gt;),&lt;BR /&gt;Dispatch(&lt;BR /&gt;{"Model Comparison"},&lt;BR /&gt;"8",&lt;BR /&gt;ScaleBox,&lt;BR /&gt;{Add Ref Line( 0, Dashed, "Black" )}&lt;BR /&gt;),&lt;BR /&gt;Dispatch(&lt;BR /&gt;{"Model Comparison"},&lt;BR /&gt;"3",&lt;BR /&gt;ScaleBox,&lt;BR /&gt;{Add Ref Line( 70, Solid, "Blue" ), Show Major Grid( 1 )}&lt;BR /&gt;),&lt;BR /&gt;Dispatch(&lt;BR /&gt;{"Model Comparison"},&lt;BR /&gt;"4",&lt;BR /&gt;ScaleBox,&lt;BR /&gt;{Add Ref Line( 0, Dashed, "Black" )}&lt;BR /&gt;),&lt;BR /&gt;Dispatch(&lt;BR /&gt;{"Model Comparison"},&lt;BR /&gt;"5",&lt;BR /&gt;ScaleBox,&lt;BR /&gt;{Add Ref Line( 0, Dashed, "Black" )}&lt;BR /&gt;)&lt;BR /&gt;)&lt;BR /&gt;);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks a lot for the help&lt;/P&gt;</description>
      <pubDate>Thu, 09 Mar 2017 01:33:27 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Excel-VBA-to-automate-JMP/m-p/36970#M21694</guid>
      <dc:creator>KL</dc:creator>
      <dc:date>2017-03-09T01:33:27Z</dc:date>
    </item>
    <item>
      <title>Re: Excel VBA to automate JMP</title>
      <link>https://community.jmp.com/t5/Discussions/Excel-VBA-to-automate-JMP/m-p/36981#M21703</link>
      <description>&lt;P&gt;Unfortunately, it looks like the automation method for Smoothing Model is out of date with the options in Time Series. &amp;nbsp;I will contact Tech Support to let them know that the issue should be entered to correct this in a future version of the product. &amp;nbsp;The only workaround that I am aware of for this case is to use the automation "RunCommand" method to submit JSL directly to JMP to do the analysis. &amp;nbsp;So, you could do something like below (using the sample data "Raleigh Temps")&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Dim DocX As JMP.Document&lt;BR /&gt; DocX = myJMP.OpenDocument("c:\program files\sas\jmppro\14\samples\data\Time Series\Raleigh Temps.jmp")&lt;BR /&gt; myJMP.RunCommand("Time Series(X( :Month Number ),Y( :Temperature ),Winters Method( 48, Zero to One, Prediction Interval( 0.8 ) ))")&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Mar 2017 13:57:41 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Excel-VBA-to-automate-JMP/m-p/36981#M21703</guid>
      <dc:creator>briancorcoran</dc:creator>
      <dc:date>2017-03-09T13:57:41Z</dc:date>
    </item>
    <item>
      <title>Re: Excel VBA to automate JMP</title>
      <link>https://community.jmp.com/t5/Discussions/Excel-VBA-to-automate-JMP/m-p/36983#M21705</link>
      <description>&lt;P&gt;no problem, thanks a lot for your help.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Mar 2017 14:02:37 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Excel-VBA-to-automate-JMP/m-p/36983#M21705</guid>
      <dc:creator>KL</dc:creator>
      <dc:date>2017-03-09T14:02:37Z</dc:date>
    </item>
  </channel>
</rss>

