https://www.betaarchive.com/wiki/index.php?title=Microsoft_KB_Archive/106320&feed=atom&action=history
Microsoft KB Archive/106320 - Revision history
2024-03-28T10:57:31Z
Revision history for this page on the wiki
MediaWiki 1.39.3
https://www.betaarchive.com/wiki/index.php?title=Microsoft_KB_Archive/106320&diff=263869&oldid=prev
X010: Text replacement - """ to """
2020-07-20T09:09:59Z
<p>Text replacement - """ to """</p>
<table style="background-color: #fff; color: #202122;" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="en-GB">
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">← Older revision</td>
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">Revision as of 09:09, 20 July 2020</td>
</tr><tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l27">Line 27:</td>
<td colspan="2" class="diff-lineno">Line 27:</td></tr>
<tr><td class="diff-marker"></td><td style="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;"><br/></td><td class="diff-marker"></td><td style="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;"><br/></td></tr>
<tr><td class="diff-marker"></td><td style="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;"><div><pre class="CODESAMP"> RemoveAllDropDownItems </pre></div></td><td class="diff-marker"></td><td style="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;"><div><pre class="CODESAMP"> RemoveAllDropDownItems </pre></div></td></tr>
<tr><td class="diff-marker" data-marker="−"></td><td style="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;"><div>This article supplements the information in online Help. To open this Help topic in Word for Windows, choose Contents from the Help menu and then choose the <del style="font-weight: bold; text-decoration: none;">&quot;</del>Programming with Microsoft Word<del style="font-weight: bold; text-decoration: none;">&quot; </del>topic. In Word for the Macintosh, click the Help icon, select Microsoft Word Help and choose <del style="font-weight: bold; text-decoration: none;">&quot;</del>Programming with Microsoft Word.<del style="font-weight: bold; text-decoration: none;">&quot;</del><br /></div></td><td class="diff-marker" data-marker="+"></td><td style="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;"><div>This article supplements the information in online Help. To open this Help topic in Word for Windows, choose Contents from the Help menu and then choose the <ins style="font-weight: bold; text-decoration: none;">"</ins>Programming with Microsoft Word<ins style="font-weight: bold; text-decoration: none;">" </ins>topic. In Word for the Macintosh, click the Help icon, select Microsoft Word Help and choose <ins style="font-weight: bold; text-decoration: none;">"</ins>Programming with Microsoft Word.<ins style="font-weight: bold; text-decoration: none;">"</ins><br /></div></td></tr>
<tr><td class="diff-marker"></td><td style="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;"><div><br /></div></td><td class="diff-marker"></td><td style="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;"><div><br /></div></td></tr>
<tr><td class="diff-marker" data-marker="−"></td><td style="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;"><div>WARNING: ANY USE BY YOU OF THE CODE PROVIDED IN THIS ARTICLE IS AT YOUR OWN RISK. Microsoft provides this macro code <del style="font-weight: bold; text-decoration: none;">&quot;</del>as is<del style="font-weight: bold; text-decoration: none;">&quot; </del>without warranty of any kind, either express or implied, including but not limited to the implied warranties of merchantability and/or fitness for a particular purpose.</div></td><td class="diff-marker" data-marker="+"></td><td style="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;"><div>WARNING: ANY USE BY YOU OF THE CODE PROVIDED IN THIS ARTICLE IS AT YOUR OWN RISK. Microsoft provides this macro code <ins style="font-weight: bold; text-decoration: none;">"</ins>as is<ins style="font-weight: bold; text-decoration: none;">" </ins>without warranty of any kind, either express or implied, including but not limited to the implied warranties of merchantability and/or fitness for a particular purpose.</div></td></tr>
<tr><td class="diff-marker"></td><td style="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;"><br/></td><td class="diff-marker"></td><td style="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;"><br/></td></tr>
<tr><td class="diff-marker"></td><td style="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;"><div>== RemoveAllDropDownItems ==</div></td><td class="diff-marker"></td><td style="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;"><div>== RemoveAllDropDownItems ==</div></td></tr>
<tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l42">Line 42:</td>
<td colspan="2" class="diff-lineno">Line 42:</td></tr>
<tr><td class="diff-marker"></td><td style="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;"><div><pre class="CODESAMP"> Sub MAIN</div></td><td class="diff-marker"></td><td style="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;"><div><pre class="CODESAMP"> Sub MAIN</div></td></tr>
<tr><td class="diff-marker"></td><td style="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;"><div> FileNewDefault</div></td><td class="diff-marker"></td><td style="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;"><div> FileNewDefault</div></td></tr>
<tr><td class="diff-marker" data-marker="−"></td><td style="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;"><div> InsertFormField .Name = <del style="font-weight: bold; text-decoration: none;">&quot;</del>Cities<del style="font-weight: bold; text-decoration: none;">&quot;</del>, .Enable = 1, .Type = 2, \ </div></td><td class="diff-marker" data-marker="+"></td><td style="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;"><div> InsertFormField .Name = <ins style="font-weight: bold; text-decoration: none;">"</ins>Cities<ins style="font-weight: bold; text-decoration: none;">"</ins>, .Enable = 1, .Type = 2, \ </div></td></tr>
<tr><td class="diff-marker" data-marker="−"></td><td style="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;"><div> .OwnStat = 1, .StatText = <del style="font-weight: bold; text-decoration: none;">&quot;</del>Select a city.<del style="font-weight: bold; text-decoration: none;">&quot;</del></div></td><td class="diff-marker" data-marker="+"></td><td style="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;"><div> .OwnStat = 1, .StatText = <ins style="font-weight: bold; text-decoration: none;">"</ins>Select a city.<ins style="font-weight: bold; text-decoration: none;">"</ins></div></td></tr>
<tr><td class="diff-marker" data-marker="−"></td><td style="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;"><div> AddDropDownItem <del style="font-weight: bold; text-decoration: none;">&quot;</del>Cities<del style="font-weight: bold; text-decoration: none;">&quot;</del>, <del style="font-weight: bold; text-decoration: none;">&quot;</del>Bonn<del style="font-weight: bold; text-decoration: none;">&quot;</del></div></td><td class="diff-marker" data-marker="+"></td><td style="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;"><div> AddDropDownItem <ins style="font-weight: bold; text-decoration: none;">"</ins>Cities<ins style="font-weight: bold; text-decoration: none;">"</ins>, <ins style="font-weight: bold; text-decoration: none;">"</ins>Bonn<ins style="font-weight: bold; text-decoration: none;">"</ins></div></td></tr>
<tr><td class="diff-marker" data-marker="−"></td><td style="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;"><div> AddDropDownItem <del style="font-weight: bold; text-decoration: none;">&quot;</del>Cities<del style="font-weight: bold; text-decoration: none;">&quot;</del>, <del style="font-weight: bold; text-decoration: none;">&quot;</del>Paris<del style="font-weight: bold; text-decoration: none;">&quot;</del></div></td><td class="diff-marker" data-marker="+"></td><td style="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;"><div> AddDropDownItem <ins style="font-weight: bold; text-decoration: none;">"</ins>Cities<ins style="font-weight: bold; text-decoration: none;">"</ins>, <ins style="font-weight: bold; text-decoration: none;">"</ins>Paris<ins style="font-weight: bold; text-decoration: none;">"</ins></div></td></tr>
<tr><td class="diff-marker" data-marker="−"></td><td style="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;"><div> AddDropDownItem <del style="font-weight: bold; text-decoration: none;">&quot;</del>Cities<del style="font-weight: bold; text-decoration: none;">&quot;</del>, <del style="font-weight: bold; text-decoration: none;">&quot;</del>Tokyo<del style="font-weight: bold; text-decoration: none;">&quot;</del></div></td><td class="diff-marker" data-marker="+"></td><td style="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;"><div> AddDropDownItem <ins style="font-weight: bold; text-decoration: none;">"</ins>Cities<ins style="font-weight: bold; text-decoration: none;">"</ins>, <ins style="font-weight: bold; text-decoration: none;">"</ins>Tokyo<ins style="font-weight: bold; text-decoration: none;">"</ins></div></td></tr>
<tr><td class="diff-marker" data-marker="−"></td><td style="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;"><div> MsgBox <del style="font-weight: bold; text-decoration: none;">&quot;</del>The Drop Down Box is Filled<del style="font-weight: bold; text-decoration: none;">&quot;</del></div></td><td class="diff-marker" data-marker="+"></td><td style="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;"><div> MsgBox <ins style="font-weight: bold; text-decoration: none;">"</ins>The Drop Down Box is Filled<ins style="font-weight: bold; text-decoration: none;">"</ins></div></td></tr>
<tr><td class="diff-marker" data-marker="−"></td><td style="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;"><div> RemoveAllDropDownItems <del style="font-weight: bold; text-decoration: none;">&quot;</del>Cities<del style="font-weight: bold; text-decoration: none;">&quot;</del></div></td><td class="diff-marker" data-marker="+"></td><td style="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;"><div> RemoveAllDropDownItems <ins style="font-weight: bold; text-decoration: none;">"</ins>Cities<ins style="font-weight: bold; text-decoration: none;">"</ins></div></td></tr>
<tr><td class="diff-marker" data-marker="−"></td><td style="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;"><div> MsgBox <del style="font-weight: bold; text-decoration: none;">&quot;</del>The Drop Down Box is Empty<del style="font-weight: bold; text-decoration: none;">&quot;</del></div></td><td class="diff-marker" data-marker="+"></td><td style="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;"><div> MsgBox <ins style="font-weight: bold; text-decoration: none;">"</ins>The Drop Down Box is Empty<ins style="font-weight: bold; text-decoration: none;">"</ins></div></td></tr>
<tr><td class="diff-marker"></td><td style="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;"><div> End Sub </pre></div></td><td class="diff-marker"></td><td style="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;"><div> End Sub </pre></div></td></tr>
<tr><td class="diff-marker"></td><td style="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;"><div>Additional query words: macro</div></td><td class="diff-marker"></td><td style="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;"><div>Additional query words: macro</div></td></tr>
</table>
X010
https://www.betaarchive.com/wiki/index.php?title=Microsoft_KB_Archive/106320&diff=49612&oldid=prev
3155ffGd: importing KB archive
2020-07-18T15:04:35Z
<p>importing KB archive</p>
<p><b>New page</b></p><div>{|<br />
|width="100%"|<br />
== WD: WordBasic Examples: RemoveAllDropDownItems ==<br />
|}<br />
<br />
Q106320<br />
<br />
<br />
-----<br />
<br />
The information in this article applies to:<br /><br />
<br />
<br />
* Microsoft Word for Windows, versions 6.0, 6.0a, 6.0c<br />
* Microsoft Word for Windows, versions 7.0, 7.0a<br />
* Microsoft Word for the Macintosh, versions 6.0, 6.0.1<br />
<br />
<br />
-----<br />
<br />
<br /><br />
<br />
<br />
== SUMMARY ==<br />
<br />
This article contains an example that demonstrates the use of the following WordBasic statement or function:<br />
<br />
<pre class="CODESAMP"> RemoveAllDropDownItems </pre><br />
This article supplements the information in online Help. To open this Help topic in Word for Windows, choose Contents from the Help menu and then choose the &quot;Programming with Microsoft Word&quot; topic. In Word for the Macintosh, click the Help icon, select Microsoft Word Help and choose &quot;Programming with Microsoft Word.&quot;<br /><br />
<br /><br />
WARNING: ANY USE BY YOU OF THE CODE PROVIDED IN THIS ARTICLE IS AT YOUR OWN RISK. Microsoft provides this macro code &quot;as is&quot; without warranty of any kind, either express or implied, including but not limited to the implied warranties of merchantability and/or fitness for a particular purpose.<br />
<br />
== RemoveAllDropDownItems ==<br />
<br />
=== Syntax ===<br />
<br />
<pre class="CODESAMP">RemoveAllDropDownItems BookmarkName$ </pre><br />
=== Example ===<br />
<br />
The following macro creates then fills a drop down box. Next the macro uses the RemoveAllDropDownItems command to remove all the items.<br />
<br />
<pre class="CODESAMP"> Sub MAIN<br />
FileNewDefault<br />
InsertFormField .Name = &quot;Cities&quot;, .Enable = 1, .Type = 2, \ <br />
.OwnStat = 1, .StatText = &quot;Select a city.&quot;<br />
AddDropDownItem &quot;Cities&quot;, &quot;Bonn&quot;<br />
AddDropDownItem &quot;Cities&quot;, &quot;Paris&quot;<br />
AddDropDownItem &quot;Cities&quot;, &quot;Tokyo&quot;<br />
MsgBox &quot;The Drop Down Box is Filled&quot;<br />
RemoveAllDropDownItems &quot;Cities&quot;<br />
MsgBox &quot;The Drop Down Box is Empty&quot;<br />
End Sub </pre><br />
Additional query words: macro<br />
<br />
Keywords : kb3rdparty kbprint kbfield winword macword word6 winword2 word7 word95<br /><br />
Issue type : kbinfo<br /><br />
Technology :<br />
<br />
{|<br />
|width="100%"| <br /><br />
Last Reviewed: November 4, 2000<br /><br />
<span>© 2001 Microsoft Corporation. All rights reserved. Terms of Use.</span><br /><br />
|}</div>
3155ffGd