<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>VBA Class on Bernd Plumhoff</title>
    <link>https://www.berndplumhoff.de/tags/vba-class/</link>
    <description>Recent content in VBA Class on Bernd Plumhoff</description>
    <generator>Hugo</generator>
    <language>en</language>
    <lastBuildDate>Wed, 13 May 2026 14:30:00 +0100</lastBuildDate>
    <atom:link href="https://www.berndplumhoff.de/tags/vba-class/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>SystemState (VBA Class)</title>
      <link>https://www.berndplumhoff.de/systemstate_de/</link>
      <pubDate>Wed, 13 May 2026 14:30:00 +0100</pubDate>
      <guid>https://www.berndplumhoff.de/systemstate_de/</guid>
      <description>&lt;h2 id=&#34;abstract&#34;&gt;Abstract&lt;/h2&gt;&#xA;&lt;p&gt;Mein ehemaliger Kollege Jon T. entwickelte die kleinste mir bekannte sinnvolle VBA Klasse:&#xA;Mit &lt;em&gt;SystemState&lt;/em&gt; kann man Systemstatusvariablen leicht speichern und für eigene Zwecke optimieren.&lt;/p&gt;&#xA;&lt;p&gt;Um die Programmausführung zu beschleunigen, schreibt man normalerweise zu Beginn eines VBA Makros&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;background-color:#fff;-moz-tab-size:2;-o-tab-size:2;tab-size:2;&#34;&gt;&lt;code class=&#34;language-VB.net&#34; data-lang=&#34;VB.net&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Application.Calculation = xlCalculationManual&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Application.ScreenUpdating = &lt;span style=&#34;color:#00f&#34;&gt;False&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;und am Ende des Makros&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;background-color:#fff;-moz-tab-size:2;-o-tab-size:2;tab-size:2;&#34;&gt;&lt;code class=&#34;language-VB.net&#34; data-lang=&#34;VB.net&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Application.Calculation = xlCalculationAutomatic&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Application.ScreenUpdating = &lt;span style=&#34;color:#00f&#34;&gt;True&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Mit dem Klassenmodul &lt;em&gt;SystemState&lt;/em&gt; schreibt man am Start lediglich&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;background-color:#fff;-moz-tab-size:2;-o-tab-size:2;tab-size:2;&#34;&gt;&lt;code class=&#34;language-VB.net&#34; data-lang=&#34;VB.net&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#00f&#34;&gt;Dim&lt;/span&gt; state &lt;span style=&#34;color:#00f&#34;&gt;As&lt;/span&gt; SystemState&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#00f&#34;&gt;Set&lt;/span&gt; state = &lt;span style=&#34;color:#00f&#34;&gt;New&lt;/span&gt; SystemState&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#008000&#34;&gt;&amp;#39;Bitte beachten: Dies kann NICHT mit &amp;#34;Dim state as New SystemState&amp;#34; abgekürzt werden!&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;und am Ende&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
