<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Otak Atik [dot] Com &#187; Word Macro</title>
	<atom:link href="http://www.otakatik.com/tag/word-macro/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.otakatik.com</link>
	<description>Empowering Computer</description>
	<lastBuildDate>Wed, 25 Jan 2012 09:06:12 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Clear Word Properties In A Click</title>
		<link>http://www.otakatik.com/clear-word-properties-in-a-click/</link>
		<comments>http://www.otakatik.com/clear-word-properties-in-a-click/#comments</comments>
		<pubDate>Mon, 07 Apr 2008 12:08:47 +0000</pubDate>
		<dc:creator>Edi Kwie</dc:creator>
				<category><![CDATA[Office Apps]]></category>
		<category><![CDATA[VBA Macro]]></category>
		<category><![CDATA[Word Macro]]></category>

		<guid isPermaLink="false">http://www.otakatik.com/?p=52</guid>
		<description><![CDATA[Every time you create a Microsoft Word document, it saves its properties too. By default, Microsoft Word will fill the properties with you registration name and company name. Unfortunately, you don’t always want it. Maybe you want set document properties with nothing or with yours. Whatever you choose, you must clean it first but if [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.otakatik.com/wp-content/uploads/tiptrick101/0103/logo.png" alt="" align="left" />Every time you create a Microsoft Word document, it saves its properties too. By default, Microsoft Word will fill the properties with you registration name and company name. Unfortunately, you don’t always want it. Maybe you want set document properties with nothing or with yours. Whatever you choose, you must clean it first but if you must clean it every time you create a document, that’s not a good idea. You can make a macro to make it with a click.<span id="more-52"></span></p>
<p>To check your properties of document word, you can open it through <strong>File &#8211; Properties</strong> menu in Microsoft Word.</p>
<p><img title="File - Properties menu" src="http://www.otakatik.com/wp-content/uploads/tiptrick101/0103/prop_menu_1.jpg" alt="File - Properties menu" /></p>
<p>then you can look the properties.</p>
<p><img title="Properties dialog" src="http://www.otakatik.com/wp-content/uploads/tiptrick101/0103/prop_window_2.jpg" alt="Properties dialog" /></p>
<p>And here are the steps to create a macro that can wipe you properties entries in a click:</p>
<p>1. Open <strong>Microsoft Word</strong> first, then open VB Editor to create a macro by click <strong>Macro &#8211; Visual Basic Editor</strong> menu.</p>
<p><img title="Visual Basic Editor menu" src="http://www.otakatik.com/wp-content/uploads/tiptrick101/0103/vba_menu_3.jpg" alt="Visual Basic Editor menu" /></p>
<p>2. In Visual Basic Editor, create a module by click <strong>Insert &#8211; Module</strong> menu.</p>
<p><img title="Insert module menu" src="http://www.otakatik.com/wp-content/uploads/tiptrick101/0103/ins_modul_4.jpg" alt="Insert module menu" /></p>
<p>3. Then type this script:</p>
<pre class="vb.net">Sub wipe_prop()
Dim my_prop As DocumentProperty
On Error Resume Next  'to make it silent
For Each my_prop In ActiveDocument.BuiltInDocumentProperties
my_prop.Value = ""
Next my_prop
End Sub</pre>
<p><img title="Type script" src="http://www.otakatik.com/wp-content/uploads/tiptrick101/0103/type_code_5.jpg" alt="Type script" /></p>
<p>4. Then, to make sure that you don’t mistake when type the script, try to compiles it first by click <strong>Debug &#8211; Compile Project</strong> menu.</p>
<p><img title="Compile current project" src="http://www.otakatik.com/wp-content/uploads/tiptrick101/0103/debug_comp_6.jpg" alt="Compile current project" /></p>
<p>5. If you don’t get any error messages, you may close the Visual Basic Editor. Then you must copy to default Word template file, it calls <em>normal.dot</em>. To doing it, organize your macro first, click <strong>Tools &#8211; Macro &#8211; Macros</strong> menu.</p>
<p><img title="Organize macro" src="http://www.otakatik.com/wp-content/uploads/tiptrick101/0103/macro_menu_7.jpg" alt="Macro menu" /></p>
<p>6. In <strong>Macros</strong> dialog, click <code>wipe_macro</code> in Macro name list, and then click <strong>Organize </strong>button.</p>
<p><img title="Organize macro" src="http://www.otakatik.com/wp-content/uploads/tiptrick101/0103/organize_8.jpg" alt="Macro menu" /></p>
<p>7. In <strong>Organize</strong> dialog, click <code>Module1 </code>item in left panel, click <strong>Copy</strong> button to copy it to <code>normal.dot</code> and then click <strong>Close</strong> button.</p>
<p><img title="Organizer macro" src="http://www.otakatik.com/wp-content/uploads/tiptrick101/0103/organizer_9.jpg" alt="Macro organizer" /></p>
<p>8. Actually, your macro has been made, but you must represent it by button on toolbar so that you can access it directly. To create a toolbar button, click <strong>Tools &#8211; Customize</strong> menu.</p>
<p><img title="Customize toolbar" src="http://www.otakatik.com/wp-content/uploads/tiptrick101/0103/customize_10.jpg" alt="Customize toolbar" /></p>
<p>9. In <strong>Customize</strong> window, click <strong>Commands</strong> tab, select <strong>Categories:</strong> <code>Macros</code>, select <strong>Commands:</strong> <code>Normal.Module1.wipe_prop</code>.</p>
<p><img title="Commands tab" src="http://www.otakatik.com/wp-content/uploads/tiptrick101/0103/commands_tab_11.jpg" alt="Commands tab" /></p>
<p>10. Click and drag <code>Normal.Module1.wipe_prop</code> onto toolbar (you can choose your favorite toolbar to put it).</p>
<p><img title="Click and drag" src="http://www.otakatik.com/wp-content/uploads/tiptrick101/0103/drag-drop_12.jpg" alt="Click and drag" /></p>
<p>11. Then change its button name to makes it be more user friendly to other users by right click it (I suggest to give it name: <em>Clean Properties</em>), and if you’ve done click <strong>Close</strong> button on <strong>Customize</strong> dialog.</p>
<p><img title="Change button name" src="http://www.otakatik.com/wp-content/uploads/tiptrick101/0103/change_name_13.jpg" alt="Change button name" /></p>
<p>12. It’s done, to try it, click your macro button (Clean Properties) and then check your document properties by click <strong>File &#8211; Properties</strong> in Microsoft Word and if its properties is empty, it means it works!</p>
<p><img title="Result" src="http://www.otakatik.com/wp-content/uploads/tiptrick101/0103/result_14.jpg" alt="Result" /></p>
<p><em>(article no:0103)</em></p>
]]></content:encoded>
			<wfw:commentRss>http://www.otakatik.com/clear-word-properties-in-a-click/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

