<?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=Calculate_Results_from_a_Model%2FVBA</id>
	<title>Calculate Results from a Model/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=Calculate_Results_from_a_Model%2FVBA"/>
	<link rel="alternate" type="text/html" href="https://www.reliawiki.com/index.php?title=Calculate_Results_from_a_Model/VBA&amp;action=history"/>
	<updated>2026-05-04T17:57:32Z</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=Calculate_Results_from_a_Model/VBA&amp;diff=65038&amp;oldid=prev</id>
		<title>Kate Racaza at 18:23, 3 April 2017</title>
		<link rel="alternate" type="text/html" href="https://www.reliawiki.com/index.php?title=Calculate_Results_from_a_Model/VBA&amp;diff=65038&amp;oldid=prev"/>
		<updated>2017-04-03T18:23:17Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 18:23, 3 April 2017&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l10&quot;&gt;Line 10:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 10:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  {{APIComment|&amp;#039;Connect to a Synthesis repository and project.}}&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  {{APIComment|&amp;#039;Connect to a Synthesis repository and project.}}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;    {{APIPrefix|Dim}} MyRepository {{APIPrefix|As New}} Repository&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;    {{APIPrefix|Dim}} MyRepository {{APIPrefix|As New}} Repository&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;    MyRepository.ConnectToRepository({{APIString|&quot;C:\RSRepository1.&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;rsr10&lt;/del&gt;&quot;}}){{APIComment|&#039;Replace with name and path to test repository.}}&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;    MyRepository.ConnectToRepository({{APIString|&quot;C:\RSRepository1.&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;rsr11&lt;/ins&gt;&quot;}}){{APIComment|&#039;Replace with name and path to test repository.}}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;    MyRepository.Project.SetCurrentProject(1){{APIComment|&amp;#039;Replace with the object ID of test project.}}&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;    MyRepository.Project.SetCurrentProject(1){{APIComment|&amp;#039;Replace with the object ID of test project.}}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   &lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Kate Racaza</name></author>
	</entry>
	<entry>
		<id>https://www.reliawiki.com/index.php?title=Calculate_Results_from_a_Model/VBA&amp;diff=63560&amp;oldid=prev</id>
		<title>Kate Racaza at 17:09, 28 April 2016</title>
		<link rel="alternate" type="text/html" href="https://www.reliawiki.com/index.php?title=Calculate_Results_from_a_Model/VBA&amp;diff=63560&amp;oldid=prev"/>
		<updated>2016-04-28T17:09:42Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 17:09, 28 April 2016&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l2&quot;&gt;Line 2:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 2:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Tutorial: Calculate Results from a Model==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Tutorial: Calculate Results from a Model==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Below is the VBA version of the [[Calculate_Results_from_a_Model|tutorial]]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Below is the VBA version of the [[Calculate_Results_from_a_Model|tutorial]]&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;.&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;. &lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt; &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  &amp;#039;&amp;#039;&amp;#039;VBA&amp;#039;&amp;#039;&amp;#039;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  &amp;#039;&amp;#039;&amp;#039;VBA&amp;#039;&amp;#039;&amp;#039;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   &lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Kate Racaza</name></author>
	</entry>
	<entry>
		<id>https://www.reliawiki.com/index.php?title=Calculate_Results_from_a_Model/VBA&amp;diff=63557&amp;oldid=prev</id>
		<title>Kate Racaza: Created page with &#039;{{Template:API}}  ==Tutorial: Calculate Results from a Model== Below is the VBA version of the tutorial .   &#039;&#039;&#039;VBA&#039;&#039;&#039;    Sub Main()      {{APIC…&#039;</title>
		<link rel="alternate" type="text/html" href="https://www.reliawiki.com/index.php?title=Calculate_Results_from_a_Model/VBA&amp;diff=63557&amp;oldid=prev"/>
		<updated>2016-04-28T16:14:23Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;#039;{{Template:API}}  ==Tutorial: Calculate Results from a Model== Below is the VBA version of the &lt;a href=&quot;/index.php/Calculate_Results_from_a_Model&quot; title=&quot;Calculate Results from a Model&quot;&gt;tutorial&lt;/a&gt; .   &amp;#039;&amp;#039;&amp;#039;VBA&amp;#039;&amp;#039;&amp;#039;    Sub Main()      {{APIC…&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: Calculate Results from a Model==&lt;br /&gt;
Below is the VBA version of the [[Calculate_Results_from_a_Model|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;
 Sub Main()&lt;br /&gt;
   &lt;br /&gt;
 {{APIComment|&amp;#039;Connect to a Synthesis repository and project.}}&lt;br /&gt;
   {{APIPrefix|Dim}} MyRepository {{APIPrefix|As New}} Repository&lt;br /&gt;
   MyRepository.ConnectToRepository({{APIString|&amp;quot;C:\RSRepository1.rsr10&amp;quot;}}){{APIComment|&amp;#039;Replace with name and path to test repository.}}&lt;br /&gt;
   MyRepository.Project.SetCurrentProject(1){{APIComment|&amp;#039;Replace with the object ID of test project.}}&lt;br /&gt;
 &lt;br /&gt;
 {{APIComment|&amp;#039;Retrieve a model from the repository.}}&lt;br /&gt;
   {{APIPrefix|Dim}} AModel {{APIPrefix|As}} cModel&lt;br /&gt;
   {{APIPrefix|Set}} AModel = MyRepository.Model.GetModel(21) {{APIComment|&amp;#039;Replace with the object ID of test model.}}&lt;br /&gt;
   &lt;br /&gt;
 {{APIComment|&amp;#039;Declare some variables to store the results.}}&lt;br /&gt;
   {{APIPrefix|Dim}} Result1 {{APIPrefix|As}} Double&lt;br /&gt;
   {{APIPrefix|Dim}} Result2 {{APIPrefix|As}} Double&lt;br /&gt;
 &lt;br /&gt;
 {{APIComment|&amp;#039;Calculate the model&amp;#039;s reliability at time &amp;amp;#61; 100 hrs and mean time.}}&lt;br /&gt;
   Result1 = AModel.Reliability(100)&lt;br /&gt;
   Result2 = AModel.MeanTime&lt;br /&gt;
  &lt;br /&gt;
 {{APIComment|&amp;#039;Set the confidence level to 90% two-sided bounds.}}&lt;br /&gt;
 {{APIComment|&amp;#039;Declare a string variable for any errors found during this method.}}&lt;br /&gt;
   {{APIPrefix|Dim}} ErrorMsg {{APIPrefix|As}} String&lt;br /&gt;
   {{APIPrefix|Call}} AModel.SetConfidenceLevel(0.9, ConfBoundsSides_TwoSidedBoth, False, ErrorMsg)&lt;br /&gt;
 &lt;br /&gt;
 {{APIComment|&amp;#039;Declare new BoundsValues objects to store the confidence bounds results.}}&lt;br /&gt;
   {{APIPrefix|Dim}} BResult1 {{APIPrefix|As}} BoundsValues&lt;br /&gt;
   {{APIPrefix|Dim}} BResult2 {{APIPrefix|As}} BoundsValues&lt;br /&gt;
 &lt;br /&gt;
 {{APIComment|&amp;#039;Calculate bounds for the reliability at 100 hrs and the mean time.}}&lt;br /&gt;
   {{APIPrefix|Set}} BResult1 = AModel.Bounds_Reliability(100)&lt;br /&gt;
   {{APIPrefix|Set}} BResult2 = AModel.Bounds_MeanTime&lt;br /&gt;
  &lt;br /&gt;
 {{APIComment|&amp;#039;Display the output.}}&lt;br /&gt;
   MsgBox ({{APIString|&amp;quot;Reliability &amp;lt;nowiki&amp;gt;=&amp;lt;/nowiki&amp;gt; &amp;quot;}} &amp;amp; Result1 &amp;amp; vbNewLine &amp;amp; _&lt;br /&gt;
           {{APIString|&amp;quot;Upper Bound &amp;lt;nowiki&amp;gt;=&amp;lt;/nowiki&amp;gt; &amp;quot;}} &amp;amp; BResult1.upper &amp;amp; vbNewLine &amp;amp; _&lt;br /&gt;
           {{APIString|&amp;quot;Lower Bound &amp;lt;nowiki&amp;gt;=&amp;lt;/nowiki&amp;gt; &amp;quot;}} &amp;amp; BResult1.lower &amp;amp; vbNewLine)&lt;br /&gt;
   MsgBox ({{APIString|&amp;quot;Mean Time &amp;lt;nowiki&amp;gt;=&amp;lt;/nowiki&amp;gt; &amp;quot;}} &amp;amp; Result2 &amp;amp; vbNewLine &amp;amp; _&lt;br /&gt;
           {{APIString|&amp;quot;Upper Bound &amp;lt;nowiki&amp;gt;=&amp;lt;/nowiki&amp;gt; &amp;quot;}} &amp;amp; BResult2.upper &amp;amp; vbNewLine &amp;amp; _&lt;br /&gt;
           {{APIString|&amp;quot;Lower Bound &amp;lt;nowiki&amp;gt;=&amp;lt;/nowiki&amp;gt; &amp;quot;}} &amp;amp; BResult2.lower &amp;amp; vbNewLine)&lt;br /&gt;
 &lt;br /&gt;
 End Sub&lt;/div&gt;</summary>
		<author><name>Kate Racaza</name></author>
	</entry>
</feed>