<?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>ChadSmiley Blog &#187; Microsoft</title>
	<atom:link href="http://chadsmiley.com/chadsmiley/category/microsoft/feed/" rel="self" type="application/rss+xml" />
	<link>http://chadsmiley.com/chadsmiley</link>
	<description>Things about family, life, coding, and more</description>
	<lastBuildDate>Sun, 11 Mar 2012 03:01:46 +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>Building Windows Mobile application with Visual Studio</title>
		<link>http://chadsmiley.com/chadsmiley/2008/03/building-windows-mobile-application-with-visual-studio/</link>
		<comments>http://chadsmiley.com/chadsmiley/2008/03/building-windows-mobile-application-with-visual-studio/#comments</comments>
		<pubDate>Wed, 12 Mar 2008 10:30:00 +0000</pubDate>
		<dc:creator>ChadSmiley</dc:creator>
				<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[Visual Studio]]></category>
		<category><![CDATA[Windows Mobile]]></category>

		<guid isPermaLink="false">http://chadsmiley.com.previewdns.com/chadsmiley/?p=1503</guid>
		<description><![CDATA[I am still working on this Windows Mobile application.  I am in the polishing stage now.  It has been a challenaging project becuase of having to learn about SQLCE, Windows Mobile, wireless printing (which Windows Mobile does not support natively). &#8230; <a href="http://chadsmiley.com/chadsmiley/2008/03/building-windows-mobile-application-with-visual-studio/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[I am still working on <a href="/chadsmiley/2007/10/outage-and-working-on"> this</a> Windows Mobile application.  I am in the polishing stage now.  It has been a challenaging project becuase of having to learn about SQLCE, Windows Mobile, wireless printing (which Windows Mobile does not support natively).  One of my biggest frustrations was the Visual Studio build was getting longer and longer.  It seemed the more I added the slower it got, but shutting down Visual Studio also helped.  I could not find anything anywhere that described this problem or anyone else that had the same problem.  Until yesterday I found <a href="http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=2792381"> VS2008 Windows Mobile 5 Project very slow to compile</a> on a MSDN form.  Yes, I have tried 2005 &amp; 2008 version and they both act the same.  The builds where taking 30 minutes.

It got to the point that I started developing this application as a Windows application and the builds would take only a couple of minutes.  This was fine until I got to the point of really testing the application using a mobile device, so I had to convert the project back.  Believe me the 30 minute build only last a couple of days until I found a new way to build my project.  It is not so new but different, because I am using MSBuild to do my compiling and taking only 2 minutes to compile.  After the build I still use F5 to build the project and run, but now there is nothing to build so VS starts the deploy and I am a happy man!!!  There is one BIG downfall to this approach, forgetting to use MSBuild to do the compiling and pressing F5.  It does allow me to write this article though!!!!

Here is my solution to slow builds in VS:
<ol>
	<li>Open a VS 2008 command prompt (this is not a normal command prompt, it is a short cut by the VS short cut in the Start | Program | .. menu) ( this only needs to be done once)</li>
	<li>Save all changes (Ctrl-Shift-S)</li>
	<li>At the command prompt type MSBuild &lt;path\filename of your VS project&gt; (drag the file from Explorer) &amp; press enter</li>
	<li>Wait for build to complete</li>
	<li>Run (F5) your VS project</li>
</ol>
Hope that saves a few hairs.]]></content:encoded>
			<wfw:commentRss>http://chadsmiley.com/chadsmiley/2008/03/building-windows-mobile-application-with-visual-studio/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Thanks for the Help</title>
		<link>http://chadsmiley.com/chadsmiley/2008/02/thanks-for-the-help/</link>
		<comments>http://chadsmiley.com/chadsmiley/2008/02/thanks-for-the-help/#comments</comments>
		<pubDate>Wed, 20 Feb 2008 00:46:00 +0000</pubDate>
		<dc:creator>ChadSmiley</dc:creator>
				<category><![CDATA[Microsoft]]></category>

		<guid isPermaLink="false">http://chadsmiley.com.previewdns.com/chadsmiley/?p=1501</guid>
		<description><![CDATA[Just trying to open a table from a SQLCE database. &#160;Update: Shut down Visual Studio and everything is working fine again.]]></description>
			<content:encoded><![CDATA[<a href="/chadsmiley/wp-content/uploads/2008/12/thanks-for-the-help1.gif"><img src="/chadsmiley/wp-content/uploads/2008/12/thanks-for-the-help1.gif" alt="thanks-for-the-help1" title="thanks-for-the-help1" width="206" height="126" class="alignnone size-full wp-image-863" /></a> <br /> Just trying to open a table from a SQLCE database. &nbsp;Update: Shut down Visual Studio and everything is working fine again.  ]]></content:encoded>
			<wfw:commentRss>http://chadsmiley.com/chadsmiley/2008/02/thanks-for-the-help/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SyncToy</title>
		<link>http://chadsmiley.com/chadsmiley/2006/01/synctoy/</link>
		<comments>http://chadsmiley.com/chadsmiley/2006/01/synctoy/#comments</comments>
		<pubDate>Wed, 18 Jan 2006 15:41:00 +0000</pubDate>
		<dc:creator>ChadSmiley</dc:creator>
				<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[Backup]]></category>

		<guid isPermaLink="false">http://chadsmiley.com.previewdns.com/chadsmiley/?p=1371</guid>
		<description><![CDATA[Yesterday I was looking for Microsoft&#8217;s Tweak UI for XP and stumbled onto a new (at least to me) tool called SyncToy.  There are more power toys some new and old that might be of interest to some.  SyncToy caught &#8230; <a href="http://chadsmiley.com/chadsmiley/2006/01/synctoy/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[Yesterday I was looking for Microsoft&#8217;s <a href="http://www.microsoft.com/windowsxp/downloads/powertoys/xppowertoys.mspx">Tweak UI for XP and stumbled onto a new (at least to me) tool called <a href="http://www.microsoft.com/downloads/details.aspx?FamilyID=e0fc1154-c975-4814-9649-cce41af06eb7&amp;DisplayLang=en">SyncToy</a>.  There are more <a href="http://www.microsoft.com/windowsxp/downloads/powertoys/xppowertoys.mspx">power toys</a> some new and old that might be of interest to some.  SyncToy caught my interest with having a memory stick that I like to keep files from work and home synchronized on.  I also have a need at work to back up files that are only backed up for 30 days,  I just lost some documentation that I don&#8217;t access that often and was deleted more than 30 days ago..  So I plan on using SyncToy and Windos Scheduled Tasks tool to take a backup of these files onto my machine or a different location on the server. <img src='http://chadsmiley.com/chadsmiley/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />   One more thing, there is no registry trail after the tool runs.  I installed it on my home machine and copied the files to my memory stick and launched it at work and nothing was ever added to the registry.  The only trail is the &#8216;SyncToyData&#8217; folder in your &#8216;My Documents&#8217; folder where the settings .  ]]></content:encoded>
			<wfw:commentRss>http://chadsmiley.com/chadsmiley/2006/01/synctoy/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Internet Explorer Developer Bar</title>
		<link>http://chadsmiley.com/chadsmiley/2005/09/internet-explorer-developer-bar/</link>
		<comments>http://chadsmiley.com/chadsmiley/2005/09/internet-explorer-developer-bar/#comments</comments>
		<pubDate>Tue, 20 Sep 2005 12:38:00 +0000</pubDate>
		<dc:creator>ChadSmiley</dc:creator>
				<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[Firefox]]></category>
		<category><![CDATA[Web]]></category>

		<guid isPermaLink="false">http://chadsmiley.com.previewdns.com/chadsmiley/?p=1334</guid>
		<description><![CDATA[If your a web developer here is a the Developer Bar for Internet Explorer. I would have to agree with Jake it is not as nice as Firefox&#8216;s but better than nothing. via: codestore.net &#8211; Internet Explorer Developer Bar Just &#8230; <a href="http://chadsmiley.com/chadsmiley/2005/09/internet-explorer-developer-bar/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[ If your a web developer here is a the <a href="http://www.microsoft.com/downloads/details.aspx?familyid=e59c3964-672d-4511-bb3e-2d5e1db91038&#038;displaylang=en" title="Internet Explorer Developer Toolbar Beta" target=_blank>Developer Bar for Internet Explorer</a>.  I would have to agree with Jake it is not as nice as <a href="http://chrispederick.com/work/firefox/webdeveloper/" title="Web Developer Extension" target=_blank >Firefox</a>&#8216;s but better than nothing.<br /> <b>via</b>: <a href="http://www.codestore.net/store.nsf/unid/BLOG-20050920" title = "Internet Explorer Developer Bar" target=_blank>codestore.net &#8211; Internet Explorer Developer Bar</a> <br /> <br /> Just came across <a href="http://www.nils.org.au/ais/web/resources/toolbar/" title="Web Accessibility Toolbar" target=_blank>another</a> toolbar. <br /> <b>via</b>: <a href="http://www.ferdychristant.com/fchristant/production/fdm.nsf/vwBlogsByDate/F8545933F638DF1F802570810066BE91" title="Rendering mode" target=_blank>Ferdy Christant  &#8211; Rendering mode</a>]]></content:encoded>
			<wfw:commentRss>http://chadsmiley.com/chadsmiley/2005/09/internet-explorer-developer-bar/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SQL Query Analyzer Tricks</title>
		<link>http://chadsmiley.com/chadsmiley/2005/04/sql-query-analyzer-tricks/</link>
		<comments>http://chadsmiley.com/chadsmiley/2005/04/sql-query-analyzer-tricks/#comments</comments>
		<pubDate>Fri, 15 Apr 2005 05:19:00 +0000</pubDate>
		<dc:creator>ChadSmiley</dc:creator>
				<category><![CDATA[Microsoft]]></category>

		<guid isPermaLink="false">http://chadsmiley.com.previewdns.com/chadsmiley/?p=1269</guid>
		<description><![CDATA[Here are a few tips and tricks when using Query Analyzer (via: The Cerebral Kitchen by Michael Earls) Alt+F1 is really cool but Query Debugger wins best tip! What is your favorite feature of Query Analyzer?]]></description>
			<content:encoded><![CDATA[ Here are a few tips and tricks when using <a href="http://developer.com/db/article.php/3418031" title="Query Analyzer Tips and Tricks" target="_blank">Query Analyzer</a> (via: <a href="http://www.cerkit.com/" title="The Cerebral Kitchen by Michael Earls" target="_blank">The Cerebral Kitchen by Michael Earls</a>)<br /> <br />Alt+F1 is really cool but Query Debugger wins best tip!  What is your favorite feature of Query Analyzer? <br />]]></content:encoded>
			<wfw:commentRss>http://chadsmiley.com/chadsmiley/2005/04/sql-query-analyzer-tricks/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Current User Temp Directory</title>
		<link>http://chadsmiley.com/chadsmiley/2005/04/current-user-temp-directory/</link>
		<comments>http://chadsmiley.com/chadsmiley/2005/04/current-user-temp-directory/#comments</comments>
		<pubDate>Mon, 04 Apr 2005 15:24:00 +0000</pubDate>
		<dc:creator>ChadSmiley</dc:creator>
				<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://chadsmiley.com.previewdns.com/chadsmiley/?p=1264</guid>
		<description><![CDATA[I was looking for a solution to some problems that I have been having with my Canon PowerShot A85. The Canon support taught me a new command: Select Start and then Run (Windows+R) Type %temp% Select OK The temp directory &#8230; <a href="http://chadsmiley.com/chadsmiley/2005/04/current-user-temp-directory/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[ I was looking for a <a href="http://chadsmiley.com/chadsmiley/2005/03/camera-problems/" title="Camera Problems">solution to some problems</a> that I have been having with my <a href="http://chadsmiley.com/chadsmiley/2005/03/canon-a85" Title="Canon A85 - post">Canon PowerShot A85</a>.  The Canon support taught me a new command: <ol> <li>Select Start and then Run (Windows+R) <li>Type %temp% <li>Select OK </ol> The temp directory of the current user will display.]]></content:encoded>
			<wfw:commentRss>http://chadsmiley.com/chadsmiley/2005/04/current-user-temp-directory/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Sutdown.exe XP</title>
		<link>http://chadsmiley.com/chadsmiley/2005/03/sutdown-exe-xp/</link>
		<comments>http://chadsmiley.com/chadsmiley/2005/03/sutdown-exe-xp/#comments</comments>
		<pubDate>Thu, 31 Mar 2005 06:02:00 +0000</pubDate>
		<dc:creator>ChadSmiley</dc:creator>
				<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[Domino]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://chadsmiley.com.previewdns.com/chadsmiley/?p=1262</guid>
		<description><![CDATA[A co-worker showed me a quick way to shut down and restart a computer. I was really interested because I use Microsoft Remote Desktop feature to connect to a Domino server. The Domino server is on an older computer with &#8230; <a href="http://chadsmiley.com/chadsmiley/2005/03/sutdown-exe-xp/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<a href="http://chadsmiley.com/chadsmiley/wp-content/uploads/2005/03/Shutdown_XP.gif"><img src="http://chadsmiley.com/chadsmiley/wp-content/uploads/2005/03/Shutdown_XP.gif" alt="" title="Shutdown_XP" width="312" height="198" class="alignright size-full wp-image-2379" /></a> A co-worker showed me a quick way to shut down and restart a computer. I was really interested because I use Microsoft <a href="http://www.microsoft.com/windowsxp/using/mobility/getstarted/remoteintro.mspx" title="Get Started Using Remote Desktop" >Remote Desktop</a> feature to connect to a Domino server.  The Domino server is on an older computer with a very loud fan so the less it runs the better.  My problem was I did not have the option to shut down the machine from the start menu..  I now have two shortcuts on the desktop, one to turn off the machine and a second to cancel the shut down.

 <b>Common shortcuts</b>
 ShutDown.exe -l (Logoff) 
 ShutDown.exe -s -t 30 (Shut Down) 
 ShutDown.exe -r -t 1 (Restart Now) 
 ShutDown.exe -r -t 30 (Restart) 
 ShutDown.exe -a (Cancel) 
 
 <tr valign=top> <td colspan=2><b>Shutdown Help</b> <tr valign=top> <td colspan=2>Usage: shutdown [-i | -l | -s | -r | -a] [-f] [-m \\computername] [-t xx] [-c "comment"] [-d up:xx:yy] <tr valign=top> <td>No args <td>Display this message (same as -?) <tr valign=top> <td>-i <td>Display GUI interface, must be the first option <tr valign=top> <td>-l <td>Log off (cannot be used with -m option) <tr valign=top> <td>-s <td>Shutdown the computer <tr valign=top> <td>-r <td>Shutdown and restart the computer <tr valign=top> <td>-a <td>Abort a system shutdown <tr valign=top> <td>-m \\computername <td>Remote computer to shutdown/restart/abort <tr valign=top> <td>-t xx <td>Set timeout for shutdown to xx seconds <tr valign=top> <td>-c &quot;comment <td>Shutdown comment (maximum of 127 characters) <tr valign=top> <td>-f <td>Forces running applications to close without warning <tr valign=top> <td>-d [u][p]:xx:yy <td>The reason code for the shutdown 
 u is the user code
 p is a planned shutdown code
 xx is the major reason code (positive integer less than 256)
 yy is the minor reason code (positive integer less than 65536)</table> 
 If you are interested in selecting the same icon as the &#8220;Turn off computer&#8221; icons check out the c:\windows\system32\SHELL32.dll.  I even assign shortcut keys to launch them easier, which works from anywhere!!! The shutdown command might work on other versions of Windows, but I have not done any testing.
 
 Thanks Tim for the idea.]]></content:encoded>
			<wfw:commentRss>http://chadsmiley.com/chadsmiley/2005/03/sutdown-exe-xp/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Camera Problems</title>
		<link>http://chadsmiley.com/chadsmiley/2005/03/camera-problems/</link>
		<comments>http://chadsmiley.com/chadsmiley/2005/03/camera-problems/#comments</comments>
		<pubDate>Thu, 24 Mar 2005 14:26:00 +0000</pubDate>
		<dc:creator>ChadSmiley</dc:creator>
				<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://chadsmiley.com.previewdns.com/chadsmiley/?p=1258</guid>
		<description><![CDATA[Update: The Canon cable was bad. I have been having problems with Windows XP recognizing my Canon PowerShot A85. I just purchased it 20 days ago. Everything was working fine at first. Then my computer would not recognize the camera &#8230; <a href="http://chadsmiley.com/chadsmiley/2005/03/camera-problems/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[ <b>Update:</b>  The Canon cable was bad.<br /><br /> I have been having problems with Windows XP recognizing my Canon PowerShot A85.  I just purchased it <a href="http://chadsmiley.com/chadsmiley/2005/03/canon-a85" Title="Canon A85 - post">20 days ago</a>.  Everything was working fine at first.  Then my computer would not recognize the camera a couple of days later.  I would get an &#8220;Unknown Device&#8221;.  I downloaded the latest and greatest software and still no luck.  After uninstalling, rebooting, installing, and then rebooting again my computer would see the camera the first time I plugged it in.  Then it would no longer see it after that. At least I thought.  I discovered that I was the problem.  I switched the camera (while it was turned on) to picture mode while it was plugged into the computer.  Once that happens your computer will never recognize the Canon A85 again until it is re-installed.<br /> <br /> <b>The Solution</b> <ol> <li>Unistall the &#8220;Unknown Device&#8221; using Device Manager from the Hardware tab of System Properties <li>Unistall the 8 applications that Canon installs <li>Reinstall the Canon applications <li>Reboot machine <li>Turn off camera <li>Connect to computer <li>Make sure the camera is in play (not picture) mode <li>Turn on camera </ol> <br /> I now can start taking some pictures again.]]></content:encoded>
			<wfw:commentRss>http://chadsmiley.com/chadsmiley/2005/03/camera-problems/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Undelete a file in NTFS</title>
		<link>http://chadsmiley.com/chadsmiley/2005/01/undelete-a-file-in-ntfs/</link>
		<comments>http://chadsmiley.com/chadsmiley/2005/01/undelete-a-file-in-ntfs/#comments</comments>
		<pubDate>Thu, 13 Jan 2005 06:30:00 +0000</pubDate>
		<dc:creator>ChadSmiley</dc:creator>
				<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[NTFS]]></category>

		<guid isPermaLink="false">http://chadsmiley.com.previewdns.com/chadsmiley/?p=1223</guid>
		<description><![CDATA[If you are looking to understand the insides of NTFS check out this undelete application.http://www.codeproject.com/file/NTFSUndelete.asp]]></description>
			<content:encoded><![CDATA[ <p>If you are looking to understand the insides of NTFS check out this undelete application.</p><p><a href="http://www.codeproject.com/file/NTFSUndelete.asp" target='_blank'>http://www.codeproject.com/file/NTFSUndelete.asp</a></p>]]></content:encoded>
			<wfw:commentRss>http://chadsmiley.com/chadsmiley/2005/01/undelete-a-file-in-ntfs/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Refresh Fields in Microsoft Word</title>
		<link>http://chadsmiley.com/chadsmiley/2004/12/refresh-fields-in-microsoft-word/</link>
		<comments>http://chadsmiley.com/chadsmiley/2004/12/refresh-fields-in-microsoft-word/#comments</comments>
		<pubDate>Wed, 22 Dec 2004 15:25:00 +0000</pubDate>
		<dc:creator>ChadSmiley</dc:creator>
				<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[Word]]></category>

		<guid isPermaLink="false">http://chadsmiley.com.previewdns.com/chadsmiley/?p=1213</guid>
		<description><![CDATA[The concept of having page numbers and other fields in Word to dynamically display information works and sounds great. The only drawback is getting the information to stay up to date. Yes, there is the F9 feature that refreshes all &#8230; <a href="http://chadsmiley.com/chadsmiley/2004/12/refresh-fields-in-microsoft-word/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[ The concept of having page numbers and other fields in Word to dynamically display information works and sounds great.  The only drawback is getting the information to stay up to date.  Yes, there is the F9 feature that refreshes all the selected fields.   Having to remember to select all the text and then press F9 is not bad.  But the headers and footers are not selected so they do not get updated.  Each different header needs to be updated individually.  This macro will update all the fields in each section of the active document.
 
 <h2>Create Macro</h2> <ol> <li>Select Tools &#8211; Macro &#8211; Macros from the menu bar</li> <li>Enter RefreshAllFields for the &#8216;Macro Name&#8217;</li> <li>Select &#8216;Normal.doc&#8217; for &#8216;Macros in&#8217;</li> <li>Select &#8216;Create&#8217; option</li> 
<a href="http://chadsmiley.com/chadsmiley/wp-content/uploads/2004/12/Refresh-All-Fields.gif"><img src="http://chadsmiley.com/chadsmiley/wp-content/uploads/2004/12/Refresh-All-Fields.gif" alt="" title="Refresh All Fields" width="453" height="334" class="alignnone size-full wp-image-2527" /></a><li>Copy the following text between Sub and End Sub</li> <li>Paste into Visual Basic Editor</li> </ol>


<div class="wp_syntax"><div class="code"><pre class="vb" style="font-family:monospace;"><span style="color: #E56717; font-weight: bold;">Sub</span> RefreshAllFields()
 <span style="color: #008000;">'
</span> <span style="color: #008000;">' RefreshAllFields Macro
</span> <span style="color: #008000;">'
</span> <span style="color: #008000;">'
</span> <span style="color: #8D38C9; font-weight: bold;">For</span> i = 1 <span style="color: #8D38C9; font-weight: bold;">To</span> ActiveDocument.Sections.Count
 	<span style="color: #8D38C9; font-weight: bold;">If</span> <span style="color: #8D38C9; font-weight: bold;">Not</span> ActiveDocument.Sections(i).Headers <span style="color: #8D38C9; font-weight: bold;">Is</span> <span style="color: #00C2FF; font-weight: bold;">Nothing</span> <span style="color: #8D38C9; font-weight: bold;">Then</span>
 		<span style="color: #8D38C9; font-weight: bold;">For</span> h = 1 <span style="color: #8D38C9; font-weight: bold;">To</span> ActiveDocument.Sections(i).Headers.Count
 			x = ActiveDocument.Sections(i).Headers(h).Range.Fields.Update()
 			 <span style="color: #8D38C9; font-weight: bold;">Next</span> h
 		<span style="color: #8D38C9; font-weight: bold;">End</span> <span style="color: #8D38C9; font-weight: bold;">If</span>
 		x = ActiveDocument.Range.Fields.Update()
 		<span style="color: #8D38C9; font-weight: bold;">If</span> <span style="color: #8D38C9; font-weight: bold;">Not</span> ActiveDocument.Sections(i).Footers <span style="color: #8D38C9; font-weight: bold;">Is</span> <span style="color: #00C2FF; font-weight: bold;">Nothing</span> <span style="color: #8D38C9; font-weight: bold;">Then</span>
 			<span style="color: #8D38C9; font-weight: bold;">For</span> f = 1 <span style="color: #8D38C9; font-weight: bold;">To</span> ActiveDocument.Sections(i).Footers.Count
 				x = ActiveDocument.Sections(i).Footers(f).Range.Fields.Update()
 			<span style="color: #8D38C9; font-weight: bold;">Next</span> f
 		<span style="color: #8D38C9; font-weight: bold;">End</span> <span style="color: #8D38C9; font-weight: bold;">If</span>
 	<span style="color: #8D38C9; font-weight: bold;">Next</span> i
 <span style="color: #8D38C9; font-weight: bold;">End</span> <span style="color: #E56717; font-weight: bold;">Sub</span></pre></div></div>



 
 <h2>Run Macro</h2> <ol> <li>Select Tools &#8211; Macro &#8211; Macros from the menu bar</li> <li>Select RefreshAllFields for List of macros</li> <li>Sit back and watch</li> </ol> 
 I use this macro so often that I added it to my personal toolbar that is always displayed in every document.]]></content:encoded>
			<wfw:commentRss>http://chadsmiley.com/chadsmiley/2004/12/refresh-fields-in-microsoft-word/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: enhanced

Served from: www.chadsmiley.com @ 2012-05-22 10:02:21 -->
