<?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>Sniptools &#187; Microsoft</title>
	<atom:link href="http://sniptools.com/tag/microsoft/feed" rel="self" type="application/rss+xml" />
	<link>http://sniptools.com</link>
	<description>Design &#38; Technology Observations</description>
	<lastBuildDate>Mon, 10 Oct 2011 02:12:36 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>Google Docs, now with templates!</title>
		<link>http://sniptools.com/webtools/google-docs-templates</link>
		<comments>http://sniptools.com/webtools/google-docs-templates#comments</comments>
		<pubDate>Sun, 20 Jul 2008 01:19:38 +0000</pubDate>
		<dc:creator>Shanx</dc:creator>
				<category><![CDATA[Web Tools]]></category>
		<category><![CDATA[Google]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[MS Word]]></category>
		<category><![CDATA[Office]]></category>
		<category><![CDATA[Tools/Reviews]]></category>

		<guid isPermaLink="false">http://sniptools.com/?p=270</guid>
		<description><![CDATA[The excellent Google Docs service has already thrown the gauntlet in the Office document editing space. If your needs are to have a basic Word or Excel document without automatic paging, or footnotes, or Table of Contents, and such, then Google is already a pretty sound option to do your documents and save them as [...]]]></description>
			<content:encoded><![CDATA[<p>The excellent <a href="http://docs.google.com/">Google Docs</a> service has already thrown the gauntlet in the Office document editing space. If your needs are to have a basic Word or Excel document without automatic paging, or footnotes, or Table of Contents, and such, then Google is already a pretty sound option to do your documents and save them as DOC or PDF files.</p>
<p>The best part is the live collaboration that Google or the likes of <a href="http://zoho.com">Zoho</a> have made possible. Online collaboration among team members was something in which Microsoft has also dabbled, but in its typical manner of releasing "Enterprise" features. No surprise that that has never really become the norm outside some corporate microcosms.</p>
<p>Today, Google has upped the ante in the war for online document editing by <a href="http://googleblog.blogspot.com/2008/07/templates-bring-docs-to-life.html">launching the templates</a>. Simple addition to their rapidly growing arsenal, but a shape of things to come. From <a href="http://docs.google.com/templates?pli=1">wedding invites to business letters</a>, it's an easily expandable service. The API and "open source" extensibility thinking of Google will make sure that you or I can contribute our own templates to the gallery. Nifty.</p>
<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="425" height="344" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowFullScreen" value="true" /><param name="src" value="http://www.youtube.com/v/dSGkzDgW1fA&amp;hl=en&amp;fs=1" /><embed type="application/x-shockwave-flash" width="425" height="344" src="http://www.youtube.com/v/dSGkzDgW1fA&amp;hl=en&amp;fs=1" allowfullscreen="true"></embed></object></p>
<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="425" height="344" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowFullScreen" value="true" /><param name="src" value="http://www.youtube.com/v/zbLmDj-BLxE&amp;hl=en&amp;fs=1" /><embed type="application/x-shockwave-flash" width="425" height="344" src="http://www.youtube.com/v/zbLmDj-BLxE&amp;hl=en&amp;fs=1" allowfullscreen="true"></embed></object></p>
]]></content:encoded>
			<wfw:commentRss>http://sniptools.com/webtools/google-docs-templates/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Customize Microsoft Office 2007 blue ribbon UI to Office 2003</title>
		<link>http://sniptools.com/windows/customize-microsoft-office-2007-blue-ribbon-ui-to-office-2003</link>
		<comments>http://sniptools.com/windows/customize-microsoft-office-2007-blue-ribbon-ui-to-office-2003#comments</comments>
		<pubDate>Thu, 17 Jul 2008 17:34:17 +0000</pubDate>
		<dc:creator>Shanx</dc:creator>
				<category><![CDATA[System Maintenance]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[Excel]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[MS Word]]></category>
		<category><![CDATA[Office]]></category>
		<category><![CDATA[Powerpoint]]></category>
		<category><![CDATA[Tips/Tricks]]></category>

		<guid isPermaLink="false">http://sniptools.com/cms/?p=160</guid>
		<description><![CDATA[Take the hideous new blue look of Microsoft Office 2007 "blue ribbon" and make it more palatable to eyes that are accustomed to Office 2003. ]]></description>
			<content:encoded><![CDATA[<p>So I finally got around to installing Office 2007. This is what it looked like:</p>
<div class="wp-caption aligncenter" style="width: 510px"><img title="Office 2007 - First Look" src="http://farm4.static.flickr.com/3034/2677351944_1319c8a9af.jpg" alt="Office 2007 - First Look" width="500" height="305" /><p class="wp-caption-text">Office 2007 — First Look</p></div>
<p>Now I don't know about you, but to me this bloo-ey look is hideous.I am not on Vista yet, by choice, so that sky blue gradation thing going on the top was not my cuppa. Why software designed for a certain platform cannot honor a user's general system UI preferences is beyond me, but Office 2007 does insist on having it's own look and feel. As though the new ribbon clutter was not enough.</p>
<p>I wanted to get rid of those ribbons to begin with. So I downloaded the the free version of <a href="http://pschmid.net/office2007/ribboncustomizer/index.php">Ribbon Customizer</a>. They offer some Pro version but it does things I don't particularly care about. Alternatively, there is <a href="http://toolbartoggle.com/">ToolbarToggle</a>, but on their site I did not seem to catch a free version, and I was unwilling to pay for this stuff.</p>
<p>The RibbonCustomizer install is pretty straightforward and when you start Word 2007 after its installation, here is how Word looks. There is an additional item in the View menu at the end:</p>
<div class="wp-caption aligncenter" style="width: 730px"><img title="Word 2007 after RibbonCustomizer" src="http://farm4.static.flickr.com/3146/2676534653_6594a869a3_o.gif" alt="Word 2007 after RibbonCustomizer" width="720" height="391" /><p class="wp-caption-text">Word 2007 after RibbonCustomizer</p></div>
<p>I clicked on the obvious menu option to make ClassicUI my first menu tab. This is what this does:</p>
<div class="wp-caption aligncenter" style="width: 819px"><img title="Classic 2003 interface" src="http://farm4.static.flickr.com/3146/2677351776_0d12dcc876_o.gif" alt="Classic 2003 interface" width="809" height="494" /><p class="wp-caption-text">Classic 2003 interface</p></div>
<p>That's a good start, but I now wanted to clean up some other stuff. Fortunately, Microsoft chose to include the additional "Minimize Ribbon" feature, which contextually hides the ribbon when your focus is on writing inside the document. So let's do that:</p>
<div class="wp-caption aligncenter" style="width: 819px"><img title="Minimize the Word 2007 ribbon" src="http://farm4.static.flickr.com/3237/2676534517_1552a04ccb_o.gif" alt="Minimize the Word 2007 ribbon" width="809" height="494" /><p class="wp-caption-text">Minimize the Word 2007 ribbon</p></div>
<p>Now to get rid of the forced Blue. Click on the "More Commands" option in the menu shown in the screenshot above. Choose Silver and make other adjustments to your taste:</p>
<div class="wp-caption aligncenter" style="width: 628px"><img title="Choose silver" src="http://farm4.static.flickr.com/3021/2677351580_16e1a9b57a_o.gif" alt="Choose silver" width="618" height="373" /><p class="wp-caption-text">Choose silver</p></div>
<p>Now this is what Word 2007 looks like, with minimized ribbon, classic 2003 UI, and a somewhat less intrusive silver gradient:</p>
<p><img class="aligncenter" title="Office 2007 with minimized ribbon, classic 2003 UI, and silver color" src="http://farm4.static.flickr.com/3293/2676534383_437b64de15_o.gif" alt="" width="1001" height="408" /></p>
<p>Phew. I also recommend setting the default "Save" options as your regular Word ".doc" instead of the new ".docx" (or other .xlsx and .pptx equivalents) as that is a bit more standard even today in 2008.</p>
]]></content:encoded>
			<wfw:commentRss>http://sniptools.com/windows/customize-microsoft-office-2007-blue-ribbon-ui-to-office-2003/feed</wfw:commentRss>
		<slash:comments>14</slash:comments>
		</item>
		<item>
		<title>FileBox Extender for Windows</title>
		<link>http://sniptools.com/windows/filebox-extender-for-windows</link>
		<comments>http://sniptools.com/windows/filebox-extender-for-windows#comments</comments>
		<pubDate>Thu, 03 May 2007 13:36:37 +0000</pubDate>
		<dc:creator>Shanx</dc:creator>
				<category><![CDATA[Windows]]></category>
		<category><![CDATA[Explorer]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[Tools/Reviews]]></category>

		<guid isPermaLink="false">http://sniptools.com/cms/?p=139</guid>
		<description><![CDATA[filebox extender for windows
]]></description>
			<content:encoded><![CDATA[<p>Very useful utility for the file opener/saver dialog boxes in Windows.</p>
<p>Here's a nifty little utility that allows you to set most often-used folders on your PC and access them quickly from a FILE OPEN dialogue box.</p>
<div class="indent"><a href="http://www.hyperionics.com/files/index.asp"><strong>FileBox Extender</strong><br />
<img src="http://sniptools.com/av/filebox.gif" alt="filebox.gif" width="466" height="338" /><br />
</a></div>
<p>These little icons appear in all the File –&gt; Open boxes in Windows. Which is very handy. Among the several customizations you can make to this oft-used file dialog box is the ability to automatically sort the file names by name, date, size, or type, and the ability to see the file names in Details or Thumbnails views. (Btw, the skin you see in that screenshot above is from <a href="http://sniptools.com/tipstricks/flyakiteosx-mac-gui-for-windows">Flyakiteosx</a>).</p>
<h3>How to Change FbX Button Images</h3>
<p>You can tell a utility is well coded if you can customize it to your tastes. I have changed the icons that come with the tool as default (which are somewhat Win3.1-ish). This is simple. In the folder where you installed FileBox eXtender, there's a sub-folder named ICONS. Inside that are several standard format Windows icon files (with the extension .ICO). Copy a pair of these files into the main program folder, and then rename them to FAVORITE.ICO and RECENT.ICO. Now exit and restart FileBox eXtender. (In some cases you will have to reboot your machine—exiting and restarting the program may not be enough to effect the change). That's it. Your new icons should now appear.</p>
]]></content:encoded>
			<wfw:commentRss>http://sniptools.com/windows/filebox-extender-for-windows/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Optimize Microsoft Office documents</title>
		<link>http://sniptools.com/windows/optimize-microsoft-office-documents</link>
		<comments>http://sniptools.com/windows/optimize-microsoft-office-documents#comments</comments>
		<pubDate>Sat, 31 Mar 2007 14:16:46 +0000</pubDate>
		<dc:creator>Shanx</dc:creator>
				<category><![CDATA[Windows]]></category>
		<category><![CDATA[Excel]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[MS Word]]></category>
		<category><![CDATA[Office]]></category>
		<category><![CDATA[openoffice]]></category>
		<category><![CDATA[outlook]]></category>
		<category><![CDATA[Powerpoint]]></category>
		<category><![CDATA[sun]]></category>
		<category><![CDATA[Tips/Tricks]]></category>

		<guid isPermaLink="false">http://sniptools.com/cms/?p=134</guid>
		<description><![CDATA[optimize ms office with openoffice
]]></description>
			<content:encoded><![CDATA[<p>Have slow loading Word documents, or password protected Excel spreadsheets for which you have forgotten a password? Who'd have thunk of this solution to your MS Office woes..</p>
<p><span id="more-134"></span></p>
<p>Have a bunch of clumsy Word documents that become huge and it takes the good old MS Word minutes to open it? Here's a tip.</p>
<p>Open the file in OpenOffice (at version 2.2 at the time of this writing), save it as Word .doc, reopen in Word itself, and voila — the file opens without much pain. This is especially useful with documents written in languages other than English, and if you have pictures in them.</p>
<p>Same with Excel. Have password-protected cells? Open the spreadsheet with in OpenOffice Calc, just uncheck 'protection', re-save as an Excel file, and you're good to go. Really helps when the original spreadsheet designer has left the company and something needs changed.</p>
<p>For those who say OpenOffice isn't "truly compatible with MS Office", well, MS Office isn't fully compatible with MS Office. Tried Office 2007 yet? The interface revamp was supposed to be a major breakthrough, but it's just pesky. Here's a quote from <a href="http://development.openoffice.org/releases/2.2.0.html">OpenOffice 2.2 release notes</a>.</p>
<div class="quote comments-wrap">"Overall, version 2.2 should appear better to users thanks to its support for kerning, a technique that improves the appearance of text written in proportional fonts; kerning is now enabled by default. OpenOffice's PDF (Portable Document Format) export function has also been enhanced with the addition of the optional creation of bookmarks feature, and with support for user-definable export of form fields. A quick look at the release notes also reveals that many minor bugs have been repaired in this new version. Most of these appear to relate to the Calc spreadsheet and Base database programs."</div>
<p>While OO isn't exactly the most efficient (memory hog alert) it is a fantastic option for start-ups and people who're unwilling to fork for an overpriced office suite when office tools are going online (think Google Docs, thinkfree, and such).</p>
]]></content:encoded>
			<wfw:commentRss>http://sniptools.com/windows/optimize-microsoft-office-documents/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Windows XP Home → Windows XP Pro</title>
		<link>http://sniptools.com/vault/upgrade-windows-xp-home-to-xp-pro</link>
		<comments>http://sniptools.com/vault/upgrade-windows-xp-home-to-xp-pro#comments</comments>
		<pubDate>Wed, 01 Jun 2005 09:49:24 +0000</pubDate>
		<dc:creator>Shanx</dc:creator>
				<category><![CDATA[Miscellaneous]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[system]]></category>
		<category><![CDATA[Tips/Tricks]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[XP]]></category>

		<guid isPermaLink="false">http://sniptools.com/cms/?p=104</guid>
		<description><![CDATA[upgrade windows xp home to xp pro
]]></description>
			<content:encoded><![CDATA[<p>A hack to upgrade without, ahem, upgrading.</p>
<p><span id="more-104"></span></p>
<p>Own Microsoft Windows XP Home but would like to own Windows XP Pro? Gizmodo is running a simple hack that apparently upgrades the system inadvertently. </p>
<p>No point duplicating it. <a href="http://www.gizmodo.com/gadgets/software/howto-change-windows-xp-home-to-windows-xp-pro-105486.php"> Read it at Gizmodo</a>. </p>
<p>YMMV, and of course, I do not endorse bootlegging. Enjoy <img src='http://sniptools.com/cms/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://sniptools.com/vault/upgrade-windows-xp-home-to-xp-pro/feed</wfw:commentRss>
		<slash:comments>24</slash:comments>
		</item>
		<item>
		<title>Find Lost Product Keys for Microsoft Windows and Office</title>
		<link>http://sniptools.com/vault/find-lost-product-key-for-microsoft-office-and-microsoft-windows</link>
		<comments>http://sniptools.com/vault/find-lost-product-key-for-microsoft-office-and-microsoft-windows#comments</comments>
		<pubDate>Wed, 11 Aug 2004 21:09:59 +0000</pubDate>
		<dc:creator>Shanx</dc:creator>
				<category><![CDATA[Miscellaneous]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[Office]]></category>
		<category><![CDATA[Product Key]]></category>
		<category><![CDATA[Tools/Reviews]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[XP]]></category>

		<guid isPermaLink="false">http://sniptools.com/cms/?p=87</guid>
		<description><![CDATA[find lost product key for microsoft office and microsoft windows
]]></description>
			<content:encoded><![CDATA[<p>Two great tools that provide the info in great detail.</p>
<p><span id="more-87"></span></p>
<p><span class="highlight">UPDATED:</span> You need your Windows XP or Microsoft Office product key, but you have lost them. Well no fear:</p>
<div class="code"><a title="Download SIW by Gabriel Topala" href="http://www3.sympatico.ca/gtopala/about_siw.html">Download SIW by Gabriel Topala</a></p>
<p>[Recommendation updated on Oct 2005, some comments below are deprecated.]</p></div>
<p>Just download it, run it, and it sees more than you will ever want to know about your system.</p>
<h3>Older Recommendations</h3>
<p>Some neat utilities to help you find stuff about your system:</p>
<div class="quote comments-wrap">
<ul>
<li>Aida32: <a title="Sofotex Aida32" href="http://www.sofotex.com/AIDA32-download_L9326.html">http://www.sofotex.com/AIDA32-download_L9326.html</a></li>
<li>Belarc Advisor: <a href="http://www.belarc.com/free_download.html">http://www.belarc.com/free_download.html</a></li>
<li>Magic Jelly Bean: <a href="http://www.magicaljellybean.com/keyfinder.shtml">http://www.magicaljellybean.com/keyfinder.shtml</a></li>
<li>Nirsoft: <a href="http://www.nirsoft.net/utils/product_cd_key_viewer.html">http://www.nirsoft.net/utils/product_cd_key_viewer.html</a></li>
</ul>
</div>
<p>Good thing about these tools is they also find a lot of other details about your system.</p>
]]></content:encoded>
			<wfw:commentRss>http://sniptools.com/vault/find-lost-product-key-for-microsoft-office-and-microsoft-windows/feed</wfw:commentRss>
		<slash:comments>28</slash:comments>
		</item>
		<item>
		<title>Wix: Microsoft trying open source</title>
		<link>http://sniptools.com/vault/wix-microsoft-open-source-installer-xml</link>
		<comments>http://sniptools.com/vault/wix-microsoft-open-source-installer-xml#comments</comments>
		<pubDate>Sat, 10 Apr 2004 07:34:34 +0000</pubDate>
		<dc:creator>Shanx</dc:creator>
				<category><![CDATA[Miscellaneous]]></category>
		<category><![CDATA[installer]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[MSDN]]></category>
		<category><![CDATA[Musings]]></category>
		<category><![CDATA[open source]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[Wix]]></category>
		<category><![CDATA[XP]]></category>

		<guid isPermaLink="false">http://sniptools.com/cms/?p=82</guid>
		<description><![CDATA[Wix microsoft open source installer XML
]]></description>
			<content:encoded><![CDATA[<p>In a first for the big tyke, Microsoft has donated its Windows Installer XML (WiX) to SourceForge.net, the open source developer network!  WiX is a toolset that uses XML code to build Windows installation packages.</p>
<p><span id="more-82"></span></p>
<h3>In a first for the industry behemoth, <a href="http://microsoft.com">Microsoft</a> has donated its Windows Installer XML (WiX) to <a href="http://sourceforge.net">SourceForge.net</a>, the open source developer network. </h3>
<p><a href="http://sourceforge.net/projects/wix">WiX is a toolset</a> that uses XML code to build Windows installation packages. The toolset supports a command line environment that developers may integrate into their build processes to build <a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/msi/setup/windows_installer_start_page.asp">MSI and MSM setup packages</a>. It includes a compiler, a lib tool, a linker and a decompiler. </p>
<p>According to a <a href="http://blogs.msdn.com/robmen/archive/2004/04/05.aspx">blog posting by Microsoft employee Rob Mensching</a>, "The WiX toolset and all of its source code has been released so that you can build Windows Installer databases (MSI and MSM files) the same way most groups inside Microsoft do.  </p>
<p>However, a funny thing happened on the way to the forum.  WiX became the first project from Microsoft to be released under an <a href="http://www.oss.net/">OSS</a> approved license, namely the <a href="http://www.opensource.org/licenses/cpl.php">Common Public License</a>." </p>
<p>Explaining the reason for the current release of WiX, Menshing said,  "Back in 1999 and 2000, I did not feel that many people inside Microsoft understood what the Open Source community was really about and I wanted to improve that understanding by providing an example.…Via WiX on SourceForge, you get to see the results of many people's efforts to improve Microsoft from the inside out.  I'm not exactly sure what is going to happen next but I'm sure there are quite a few people who are interested to see where this leads.  Personally, all I hope is that if you find the WiX toolset useful then you'll join the community and help us improve the toolset."</p>
<p>More information about the toolset and its OSS release can be found at: </p>
<div class="quote comments-wrap">
<ul>
<li><a href="http://blogs.msdn.com/robmen/archive/2004/04/05/107709.aspx">The Wix blog posting</a></li>
<li><a href="http://www.winisp.net/robm/pictures/headshots.jpg">The team behind Wix</a></li>
</ul>
</div>
]]></content:encoded>
			<wfw:commentRss>http://sniptools.com/vault/wix-microsoft-open-source-installer-xml/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Auto-generate a Table of Contents in Excel</title>
		<link>http://sniptools.com/vault/auto-generate-a-table-of-contents-in-excel</link>
		<comments>http://sniptools.com/vault/auto-generate-a-table-of-contents-in-excel#comments</comments>
		<pubDate>Thu, 15 Jan 2004 03:35:13 +0000</pubDate>
		<dc:creator>Shanx</dc:creator>
				<category><![CDATA[Miscellaneous]]></category>
		<category><![CDATA[Excel]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[Office]]></category>
		<category><![CDATA[Stash/Code]]></category>

		<guid isPermaLink="false">http://sniptools.com/cms/?p=63</guid>
		<description><![CDATA[Auto-generate a Table of Contents in Excel
]]></description>
			<content:encoded><![CDATA[<p>Here's a cool, handy macro to auto-generate a Table of Contents for any Excel file.</p>
<p><span id="more-63"></span></p>
<h3>Here's a cool, handy macro that will auto-generate a Table of Contents for any Excel file.</h3>
<p>Steps remains the same as in any macro (Alt F11 to start VBA, Insert module, paste the code, save, File -&gt; Return to Excel, then Alt F8, and Run). That's a mouthful, but <a href="/tipstricks/deleting-all-hyperlinks-from-a-microsoft-office-document">you know what to do</a>.</p>
<p>Here's the code:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
</pre></td><td class="code"><pre class="vb" style="font-family:monospace;">&lt;strong&gt;Sub GenerateTableOfContents()&lt;/strong&gt;
<span style="color: #008000;">' Does a TOC already exist?
</span><span style="color: #008000;">' If Err system variable is &amp;gt; 0, it doesn't
</span><span style="color: #151B8D; font-weight: bold;">Dim</span> wSheet <span style="color: #151B8D; font-weight: bold;">As</span> Worksheet
<span style="color: #151B8D; font-weight: bold;">On</span> <span style="color: #151B8D; font-weight: bold;">Error</span> <span style="color: #151B8D; font-weight: bold;">Resume</span> <span style="color: #8D38C9; font-weight: bold;">Next</span>
<span style="color: #151B8D; font-weight: bold;">Set</span> wSheet = Worksheets(<span style="color: #800000;">&quot;Table of Contents&quot;</span>)
<span style="color: #8D38C9; font-weight: bold;">If</span> <span style="color: #8D38C9; font-weight: bold;">Not</span> Err = 0 <span style="color: #8D38C9; font-weight: bold;">Then</span>
&nbsp;
<span style="color: #008000;">' The Table of contents doesn't exist. Add it
</span><span style="color: #151B8D; font-weight: bold;">Set</span> wSheet = Worksheets.Add(Before:=Worksheets(1))
wSheet.Name = <span style="color: #800000;">&quot;TOC&quot;</span>
<span style="color: #8D38C9; font-weight: bold;">End</span> <span style="color: #8D38C9; font-weight: bold;">If</span>
<span style="color: #151B8D; font-weight: bold;">On</span> <span style="color: #151B8D; font-weight: bold;">Error</span> <span style="color: #8D38C9; font-weight: bold;">GoTo</span> 0
&nbsp;
<span style="color: #008000;">' Set up the table of contents page
</span>wSheet.[A2] = <span style="color: #800000;">&quot;Table of Contents&quot;</span>
&nbsp;
<span style="color: #8D38C9; font-weight: bold;">With</span> wSheet.[A6]
.CurrentRegion.Clear
.Value = <span style="color: #800000;">&quot;Subject&quot;</span>
<span style="color: #8D38C9; font-weight: bold;">End</span> <span style="color: #8D38C9; font-weight: bold;">With</span>
&nbsp;
wSheet.[B6] = <span style="color: #800000;">&quot;Page(s)&quot;</span>
wSheet.Range(<span style="color: #800000;">&quot;A1:B1&quot;</span>).ColumnWidth = Array(36, 12)
TableRow = 7
PageCount = 0
Worksheets.<span style="color: #8D38C9; font-weight: bold;">Select</span>
displayMessage = <span style="color: #800000;">&quot;We'll do a Print Preview for some calculations.&quot;</span>
displayMessage = displayMessage &amp;amp; <span style="color: #800000;">&quot;Please 'Close' the window when it appears.&quot;</span>
MsgBox displayMessage
ActiveWindow.SelectedSheets.PrintPreview
&nbsp;
<span style="color: #008000;">' Now loop thru sheets, collecting TOC info
</span><span style="color: #8D38C9; font-weight: bold;">For</span> <span style="color: #8D38C9; font-weight: bold;">Each</span> S <span style="color: #8D38C9; font-weight: bold;">In</span> Worksheets
S.<span style="color: #8D38C9; font-weight: bold;">Select</span>
ThisName = S.Name
HPages = S.HPageBreaks.Count + 1
VPages = S.VPageBreaks.Count + 1
ThisPages = HPages * VPages
&nbsp;
<span style="color: #008000;">' Enter info about this sheet on TOC
</span>wSheet.Cells(TableRow, 1).Value = ThisName
wSheet.Cells(TableRow, 2).NumberFormat = <span style="color: #800000;">&quot;@&quot;</span>
<span style="color: #8D38C9; font-weight: bold;">If</span> ThisPages = 1 <span style="color: #8D38C9; font-weight: bold;">Then</span>
  wSheet.Cells(TableRow, 2).Value =
  PageCount + 1 &amp;amp; <span style="color: #800000;">&quot; &quot;</span>
<span style="color: #8D38C9; font-weight: bold;">Else</span>
  wSheet.Cells(TableRow, 2).Value =
  PageCount + 1 &amp;amp; <span style="color: #800000;">&quot; - &quot;</span> &amp;amp; PageCount + ThisPages
<span style="color: #8D38C9; font-weight: bold;">End</span> <span style="color: #8D38C9; font-weight: bold;">If</span>
PageCount = PageCount + ThisPages
TableRow = TableRow + 1
<span style="color: #8D38C9; font-weight: bold;">Next</span> S
&lt;strong&gt;End Sub&lt;/strong&gt;</pre></td></tr></table></div>

<p>That's all there is to it! Note that VBA does not allow putting the lines after an equal to sign (" = ") on a separate line, although the above code has them so (only to save formatting.)</p>
<p>Feel free to leave a note if you don't understand some bit of the code and I'll try to explain, though it's quite self-explanatory. The calculation of the number of pages is done through the number of page breaks inside the Print Preview.</p>
<p>Have fun!</p>
]]></content:encoded>
			<wfw:commentRss>http://sniptools.com/vault/auto-generate-a-table-of-contents-in-excel/feed</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>Add Folder Size in Windows XP&#039;s Explorer</title>
		<link>http://sniptools.com/vault/folder-size-in-windows-explorer</link>
		<comments>http://sniptools.com/vault/folder-size-in-windows-explorer#comments</comments>
		<pubDate>Thu, 20 Feb 2003 07:05:16 +0000</pubDate>
		<dc:creator>Shanx</dc:creator>
				<category><![CDATA[Miscellaneous]]></category>
		<category><![CDATA[Explorer]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[Tips/Tricks]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://sniptools.com/cms/?p=13</guid>
		<description><![CDATA[folder size in windows explorer
]]></description>
			<content:encoded><![CDATA[<p>Neat little tip to see size of your folders.</p>
<h3>Want to see the size of your folders and not just files in your Windows XP Explorer listings?</h3>
<div class="quote comments-wrap">If you are interested, <a href="http://www.win.tue.nl/sequoiaview/">Sequoia View</a> is a very useful tool to do some nifty things with your folders. Other than that, this following note is now showing its age. If sorting and such is not necessary, a simple mouse-over your folders in Explorer will show you a tooltip with an approximate size of your directories. The menu option <code>Tools --&gt; Options --&gt; View --&gt; Show file size in folder tips</code> should let you control the behavior of this tooltip.</div>
<p>Well it's probably a simple feature that the Windows team at Microsoft forgot to include, so Mark Dormer has a solution. Just download his tiny DLL file:</p>
<div class="quote"><a href="http://markd.mvps.org/DirSize.dll">Download Mark Dormer's Folderview DLL</a></div>
<p>It's an EXE file. All you really have to do is:</p>
<ol>
<li>Copy the file to your <code>c:\windows\system32</code> folder.</li>
<li>Execute the following command in Start –&gt; Run dialogue box and you're ready to roll:
<div class="code">regsvr32 c:\windows\system32\dirsize.dll</div>
</li>
<li>Now open Explorer in details view, you wont see the column yet. Right click on a heading in the right pane and select "Folder Size".</li>
</ol>
<h3>Couple of Caveats</h3>
<ul>
<li>Calculating folder size is a turtle on very large folders with lots of subfolders. There's no indexing built into this.</li>
<li>As much you and I would like, this tool doesn't do sorting of folders based on the folder size. You may want to give another utility a try, the <a href="http://www.softpedia.com/get/System/OS-Enhancements/Folder-Size-Shell-Extension.shtml">Folder Shell Extension</a>.</li>
</ul>
<h3>Couple of Tips</h3>
<ul>
<li>To apply this setting for all the folder, click Tools, Folder Options. In the View tab and click Apply to all folders.</li>
<li>To remove the feature, simply <strong>un</strong>–register the DLL later with the following command (ignore error messages if any) –
<div class="code">regsvr32 /u %Systemroot%\System32\Dirsize.dll</div>
</li>
</ul>
<p>Hope this helps.</p>
]]></content:encoded>
			<wfw:commentRss>http://sniptools.com/vault/folder-size-in-windows-explorer/feed</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Auto-generating a list of all formulas in an Excel file</title>
		<link>http://sniptools.com/vault/auto-generating-a-list-of-all-formulas-in-an-excel-file</link>
		<comments>http://sniptools.com/vault/auto-generating-a-list-of-all-formulas-in-an-excel-file#comments</comments>
		<pubDate>Sun, 09 Feb 2003 04:00:14 +0000</pubDate>
		<dc:creator>Shanx</dc:creator>
				<category><![CDATA[Miscellaneous]]></category>
		<category><![CDATA[Excel]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[Stash/Code]]></category>
		<category><![CDATA[Tips/Tricks]]></category>

		<guid isPermaLink="false">http://sniptools.com/cms/?p=11</guid>
		<description><![CDATA[Auto-generating a list of all formulas in an Excel file
]]></description>
			<content:encoded><![CDATA[<p>Here's a handy macro to make a new worksheet inside your Excel file, then traverse through each and every sheet in the file, collecting all functions and formulas used in the whole file. All these formulas are listed on a separate worksheet in the same file.</p>
<h3>Here's a handy macro to make a new worksheet inside your Excel file, then traverse through each and every sheet in the file, collecting all functions and formulas used in the whole file. All these formulas are listed on a separate worksheet in the same file.</h3>
<p>The code is below, feel free to use it but please attribute whenever you use it, thanks –</p>
<blockquote>
<pre>Option Explicit
<strong>Public Sub ListFormulasInWorkbook()</strong>
Const SHEETNAME As String = "Formulas in *"
Have fun!

Const ALLFORMULAS As Integer = _
xlNumbers + xlTextValues + xlLogical + xlErrors
Const maxRows As Long = 65500
Dim formulaSht As Worksheet
Dim destRng As Range
Dim cell As Range
Dim wkSht As Worksheet
Dim formulaRng As Range
Dim shCnt As Long
Dim oldScreenUpdating As Boolean
With Application
oldScreenUpdating = .ScreenUpdating
.ScreenUpdating = False
End With
shCnt = 0
ListFormulasAddSheet formulaSht, shCnt
<span style="color: #008800;">' Enumerate formulas on each sheet</span>
Set destRng = formulaSht.Range("A4")
For Each wkSht In ActiveWorkbook.Worksheets
If Not wkSht.Name Like SHEETNAME Then
Application.StatusBar = wkSht.Name
destRng.Value = wkSht.Name
Set destRng = destRng.Offset(1, 0)
On Error Resume Next
Set formulaRng = wkSht.Cells.SpecialCells( _
xlCellTypeFormulas, ALLFORMULAS)
On Error GoTo 0
If formulaRng Is Nothing Then
destRng.Offset(0, 1).Value = "None"
Set destRng = destRng.Offset(1, 0)
Else
For Each cell In formulaRng
With destRng
.Offset(0, 1) = cell.Address(0, 0)
.Offset(0, 2) = "'" &amp; cell.Formula
.Offset(0, 3) = cell.Value
End With
Set destRng = destRng.Offset(1, 0)
If destRng.row &gt; maxRows Then
ListFormulasAddSheet formulaSht, shCnt
Set destRng = formulaSht.Range("A5")
destRng.Offset(-1, 0).Value = wkSht.Name
End If
Next cell
Set formulaRng = Nothing
End If
With destRng.Resize(1, 4).Borders(xlEdgeBottom)
.LineStyle = xlContinuous
.Weight = xlThin
.ColorIndex = 5
End With
Set destRng = destRng.Offset(1, 0)
If destRng.row &gt; maxRows Then
ListFormulasAddSheet formulaSht, shCnt
Set destRng = formulaSht.Range("A5")
destRng.Offset(-1, 0).Value = wkSht.Name
End If
End If
Next wkSht
With Application
.StatusBar = False
.ScreenUpdating = oldScreenUpdating
End With
<strong>End Sub</strong>
<strong>Private Sub ListFormulasAddSheet( _
formulaSht As Worksheet, shtCnt As Long)</strong>
Const SHEETNAME As String = "Formulas in "
Const SHEETTITLE As String = "Formulas in $ as of "
Const DATEFORMAT As String = "dd MMM yyyy hh:mm"
Dim shtName As String
With ActiveWorkbook
<span style="color: #008800;">' Delete existing sheet, create new</span>
shtCnt = shtCnt + 1
shtName = Left(SHEETNAME &amp; .Name, 28)
If shtCnt &gt; 1 Then _
shtName = shtName &amp; "_" &amp; shtCnt
On Error Resume Next
Application.DisplayAlerts = False
.Worksheets(shtName).Delete
Application.DisplayAlerts = True
On Error GoTo 0
Set formulaSht = .Worksheets.Add( _
after:=Sheets(Sheets.Count))
End With
With formulaSht
<span style="color: #008800;">' Format headers</span>
.Name = shtName
.Columns(1).ColumnWidth = 15
.Columns(2).ColumnWidth = 8
.Columns(3).ColumnWidth = 60
.Columns(4).ColumnWidth = 40
With .Range("C:D")
.Font.Size = 9
.HorizontalAlignment = xlLeft
.EntireColumn.WrapText = True
End With
With .Range("A1")
.Value = Application.Substitute(SHEETTITLE, "$", _
ActiveWorkbook.Name) &amp; Format(Now, DATEFORMAT)
With .Font
.Bold = True
.ColorIndex = 5
.Size = 14
End With
End With
With .Range("A3").Resize(1, 4)
.Value = Array("Sheet", "Address", "Formula", "Value")
With .Font
.ColorIndex = 13
.Bold = True
.Size = 12
End With
.HorizontalAlignment = xlCenter
With .Borders(xlEdgeBottom)
.LineStyle = xlDouble
.Weight = xlThick
.ColorIndex = 5
End With
End With
End With
<strong>End Sub</strong>
</pre>
</blockquote>
<p>Have fun!</p>
]]></content:encoded>
			<wfw:commentRss>http://sniptools.com/vault/auto-generating-a-list-of-all-formulas-in-an-excel-file/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

