<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://www.reliawiki.com/index.php?action=history&amp;feed=atom&amp;title=Create_Plots%2FVBA</id>
	<title>Create Plots/VBA - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://www.reliawiki.com/index.php?action=history&amp;feed=atom&amp;title=Create_Plots%2FVBA"/>
	<link rel="alternate" type="text/html" href="https://www.reliawiki.com/index.php?title=Create_Plots/VBA&amp;action=history"/>
	<updated>2026-05-14T01:12:33Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.44.0</generator>
	<entry>
		<id>https://www.reliawiki.com/index.php?title=Create_Plots/VBA&amp;diff=64733&amp;oldid=prev</id>
		<title>Kate Racaza: Created page with &#039;{{Template:API}}  ==Tutorial: Create a Probability Plot == Below is the VBA version of the tutorial.   &#039;&#039;&#039;VBA&#039;&#039;&#039;    {{APIPrefix|Sub}} Main()     {{APIComment|&#039;Cr…&#039;</title>
		<link rel="alternate" type="text/html" href="https://www.reliawiki.com/index.php?title=Create_Plots/VBA&amp;diff=64733&amp;oldid=prev"/>
		<updated>2016-09-07T15:34:58Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;#039;{{Template:API}}  ==Tutorial: Create a Probability Plot == Below is the VBA version of the &lt;a href=&quot;/index.php/Create_Plots&quot; title=&quot;Create Plots&quot;&gt;tutorial&lt;/a&gt;.   &amp;#039;&amp;#039;&amp;#039;VBA&amp;#039;&amp;#039;&amp;#039;    {{APIPrefix|Sub}} Main()     {{APIComment|&amp;#039;Cr…&amp;#039;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Template:API}}&lt;br /&gt;
&lt;br /&gt;
==Tutorial: Create a Probability Plot ==&lt;br /&gt;
Below is the VBA version of the [[Create_Plots|tutorial]].&lt;br /&gt;
&lt;br /&gt;
 &amp;#039;&amp;#039;&amp;#039;VBA&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
 &lt;br /&gt;
 {{APIPrefix|Sub}} Main()&lt;br /&gt;
 &lt;br /&gt;
  {{APIComment|&amp;#039;Create a Weibull++ data set.}} &lt;br /&gt;
    {{APIPrefix|Dim}} WDS {{APIPrefix|As New}} WeibullDataSet&lt;br /&gt;
    {{APIPrefix|Call}} WDS.AddFailure(16, 1)&lt;br /&gt;
    {{APIPrefix|Call}} WDS.AddFailure(34, 1)&lt;br /&gt;
    {{APIPrefix|Call}} WDS.AddFailure(53, 1)  &lt;br /&gt;
    {{APIPrefix|Call}} WDS.AddFailure(75, 1)&lt;br /&gt;
    {{APIPrefix|Call}} WDS.AddFailure(93, 1)&lt;br /&gt;
    {{APIPrefix|Call}} WDS.AddSuspension(120, 5)   &lt;br /&gt;
 &lt;br /&gt;
  {{APIComment|&amp;#039;Analyze the data set using the 2-parameter Weibull distribution and}} &lt;br /&gt;
  {{APIComment|&amp;#039;the RRX analysis method. Keep all other analysis settings at default.}}&lt;br /&gt;
    WDS.AnalysisSettings.Distribution = WeibullSolverDistribution_Weibull&lt;br /&gt;
    WDS.AnalysisSettings.Parameters = WeibullSolverNumParameters_MS_2Parameter&lt;br /&gt;
    WDS.AnalysisSettings.Analysis = WeibullSolverMethod_RRX&lt;br /&gt;
  &lt;br /&gt;
  {{APIComment|&amp;#039;Analyze the data set.}}&lt;br /&gt;
    {{APIPrefix|Call}} WDS.Calculate()&lt;br /&gt;
 &lt;br /&gt;
  {{APIComment|&amp;#039;Declare a new WAPlots object.}}&lt;br /&gt;
    {{APIPrefix|Dim}} WPlot {{APIPrefix|As New}} WAPlots&lt;br /&gt;
 &lt;br /&gt;
  {{APIComment|&amp;#039;Add the analyzed data set to the plot.}}&lt;br /&gt;
    {{APIPrefix|Call}} WPlot.AddDataset(WDS)&lt;br /&gt;
 &lt;br /&gt;
  {{APIComment|&amp;#039;Create a probability plot and display it in an Image control in the current Excel sheet.}}&lt;br /&gt;
    Image1.Picture = WPlot.CreatePlotVB6(WAPlotType_Probability)&lt;br /&gt;
 &lt;br /&gt;
  {{APIComment|&amp;#039;Resize the picture (optional).}}&lt;br /&gt;
    Image1.Height = 600&lt;br /&gt;
    Image1.Width = 865&lt;br /&gt;
  &lt;br /&gt;
 {{APIPrefix|End Sub}}&lt;/div&gt;</summary>
		<author><name>Kate Racaza</name></author>
	</entry>
</feed>