<?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: in VBA Forum</title>
    <link>https://forums.autodesk.com/t5/vba-forum/default-values/m-p/352741#M74373</link>
    <description>&lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;Store the value in the Registry... That's what it's &lt;BR /&gt;
for...&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;Public Sub Userform1_Initialize ()&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; TextBox 1 = Getsetting &lt;BR /&gt;
("MyProgram", "MySettings", "MyKey", "MyDefaultValue")&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;End Sub&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;Public Sub Userform1_Deactivate()&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Savesetting (""MyProgram", &lt;BR /&gt;
"MySettings", "MyKey", Me.TextBox1.value)&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;End Sub&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
&lt;BLOCKQUOTE dir="ltr"&gt;&lt;BR /&gt;
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px"&amp;gt;&lt;BR /&gt;
  &lt;DIV&gt;"lorier" &amp;lt;&lt;A href="mailto:justin@bee.net"&gt;justin@bee.net&lt;/A&gt;&amp;gt; wrote &lt;BR /&gt;
  in message &lt;A&gt;&lt;BR /&gt;
  href="news:f0dbfd9.1@WebX.maYIadrTaRb"&amp;gt;news:f0dbfd9.1@WebX.maYIadrTaRb&lt;/A&gt;...&lt;/DIV&gt;ok, &lt;BR /&gt;
  now what i mean is... How do you change that Value property of the TextBox at &lt;BR /&gt;
  runtime. I want to have a 'set as default' button that hard codes the new &lt;BR /&gt;
  'default' values into the vba code. &lt;BR /&gt;
  &lt;P&gt;thanks &lt;BR /&gt;lorier&lt;/P&gt;&lt;/BLOCKQUOTE&gt;</description>
    <pubDate>Wed, 08 May 2002 20:06:07 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2002-05-08T20:06:07Z</dc:date>
    <item>
      <title>default values</title>
      <link>https://forums.autodesk.com/t5/vba-forum/default-values/m-p/352737#M74369</link>
      <description>Hello,&lt;BR /&gt;
&lt;BR /&gt;
I would like to have a 'default' button on a form that saves the value of a text box in vba, to its value property.  So that the next time the macro is loaded and run the 'default' value is loaded.  I know it is possible to load and unload references at runtime, but i'm not sure about changing form and control properties.   This would save having to deal with writing and reading from another file which would also have to be maintained.&lt;BR /&gt;
&lt;BR /&gt;
thanks</description>
      <pubDate>Wed, 08 May 2002 15:56:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/default-values/m-p/352737#M74369</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2002-05-08T15:56:12Z</dc:date>
    </item>
    <item>
      <title>Re: default values</title>
      <link>https://forums.autodesk.com/t5/vba-forum/default-values/m-p/352738#M74370</link>
      <description>&lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;You type 'default' value into Text or Value &lt;BR /&gt;
property of TextBox in Property Window while you design your form. By doing &lt;BR /&gt;
this, whenever your form is loaded, the 'default value' is set in the text &lt;BR /&gt;
box.&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
&lt;BLOCKQUOTE dir="ltr"&gt;&lt;BR /&gt;
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px"&amp;gt;&lt;BR /&gt;
  &lt;DIV&gt;"lorier" &amp;lt;&lt;A href="mailto:justin@bee.net"&gt;justin@bee.net&lt;/A&gt;&amp;gt; wrote &lt;BR /&gt;
  in message &lt;A&gt;&lt;BR /&gt;
  href="news:f0dbfd9.-1@WebX.maYIadrTaRb"&amp;gt;news:f0dbfd9.-1@WebX.maYIadrTaRb&lt;/A&gt;...&lt;/DIV&gt;Hello, &lt;BR /&gt;
&lt;BR /&gt;
  &lt;P&gt;I would like to have a 'default' button on a form that saves the value of a &lt;BR /&gt;
  text box in vba, to its value property. So that the next time the macro is &lt;BR /&gt;
  loaded and run the 'default' value is loaded. I know it is possible to load &lt;BR /&gt;
  and unload references at runtime, but i'm not sure about changing form and &lt;BR /&gt;
  control properties. This would save having to deal with writing and reading &lt;BR /&gt;
  from another file which would also have to be maintained. &lt;BR /&gt;
  &lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Wed, 08 May 2002 16:07:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/default-values/m-p/352738#M74370</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2002-05-08T16:07:14Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/vba-forum/default-values/m-p/352739#M74371</link>
      <description>ok, now what i mean is... How do you change that Value property of the TextBox at runtime.  I want to have a 'set as default' button that hard codes the new 'default' values into the vba code.&lt;BR /&gt;
&lt;BR /&gt;
thanks&lt;BR /&gt;
lorier</description>
      <pubDate>Wed, 08 May 2002 17:15:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/default-values/m-p/352739#M74371</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2002-05-08T17:15:40Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/vba-forum/default-values/m-p/352740#M74372</link>
      <description>lorier &lt;JUSTIN&gt; had this to say:&lt;BR /&gt;
&lt;BR /&gt;
&amp;gt; ok, now what i mean is... How do you change that Value property of&lt;BR /&gt;
&amp;gt; the TextBox at runtime. I want to have a 'set as default' button&lt;BR /&gt;
&amp;gt; that hard codes the new 'default' values into the vba code.&lt;BR /&gt;
&amp;gt; thanks&lt;BR /&gt;
&amp;gt; lorier&lt;BR /&gt;
&lt;BR /&gt;
Look into the SaveSetting and GetSetting functions to store your&lt;BR /&gt;
information in the registry.&lt;BR /&gt;
&lt;BR /&gt;
--&lt;BR /&gt;
http://www.acadx.com&lt;/JUSTIN&gt;</description>
      <pubDate>Wed, 08 May 2002 19:55:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/default-values/m-p/352740#M74372</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2002-05-08T19:55:00Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/vba-forum/default-values/m-p/352741#M74373</link>
      <description>&lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;Store the value in the Registry... That's what it's &lt;BR /&gt;
for...&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;Public Sub Userform1_Initialize ()&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; TextBox 1 = Getsetting &lt;BR /&gt;
("MyProgram", "MySettings", "MyKey", "MyDefaultValue")&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;End Sub&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;Public Sub Userform1_Deactivate()&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Savesetting (""MyProgram", &lt;BR /&gt;
"MySettings", "MyKey", Me.TextBox1.value)&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;End Sub&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
&lt;BLOCKQUOTE dir="ltr"&gt;&lt;BR /&gt;
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px"&amp;gt;&lt;BR /&gt;
  &lt;DIV&gt;"lorier" &amp;lt;&lt;A href="mailto:justin@bee.net"&gt;justin@bee.net&lt;/A&gt;&amp;gt; wrote &lt;BR /&gt;
  in message &lt;A&gt;&lt;BR /&gt;
  href="news:f0dbfd9.1@WebX.maYIadrTaRb"&amp;gt;news:f0dbfd9.1@WebX.maYIadrTaRb&lt;/A&gt;...&lt;/DIV&gt;ok, &lt;BR /&gt;
  now what i mean is... How do you change that Value property of the TextBox at &lt;BR /&gt;
  runtime. I want to have a 'set as default' button that hard codes the new &lt;BR /&gt;
  'default' values into the vba code. &lt;BR /&gt;
  &lt;P&gt;thanks &lt;BR /&gt;lorier&lt;/P&gt;&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Wed, 08 May 2002 20:06:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/default-values/m-p/352741#M74373</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2002-05-08T20:06:07Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/vba-forum/default-values/m-p/352742#M74374</link>
      <description>Another option is to save the value to a global variable in your module. The disadvantage to that is that the value will be cleared each time you unload the module or close acad. Sometimes its enough to save the variable for the current session only. -Ed</description>
      <pubDate>Thu, 09 May 2002 06:34:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/default-values/m-p/352742#M74374</guid>
      <dc:creator>Ed__Jobe</dc:creator>
      <dc:date>2002-05-09T06:34:31Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/vba-forum/default-values/m-p/352743#M74375</link>
      <description>Thanks Aaron! Didn't know it was that simple.</description>
      <pubDate>Thu, 09 May 2002 15:30:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/default-values/m-p/352743#M74375</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2002-05-09T15:30:33Z</dc:date>
    </item>
  </channel>
</rss>

