<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-1434142189173368768</id><updated>2012-01-19T19:34:21.815+01:00</updated><category term='VBA'/><category term='PostScript'/><category term='PATH'/><category term='CLI'/><category term='Languages'/><category term='Export'/><category term='GhostScript'/><category term='Compare'/><category term='PDF'/><category term='Clock'/><category term='Input'/><category term='Date'/><category term='Macro'/><category term='AHK'/><category term='CMD'/><category term='Batch'/><category term='conversion'/><category term='Sed'/><category term='Time'/><category term='Replace'/><category term='Xpdf'/><category term='CSV'/><category term='Windows'/><category term='Excel'/><title type='text'>qubodup in the office</title><subtitle type='html'>I try to avoid nervous breakdown at work. Here's how:</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://qoffice.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1434142189173368768/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://qoffice.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>qubodup</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://1.bp.blogspot.com/_aj6f5lJ5nMc/S0KeDA2YJlI/AAAAAAAABIo/hLmNwzFIlQ8/S220/qubodupbox.png'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>7</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-1434142189173368768.post-1500878856855438641</id><published>2011-05-18T13:43:00.001+02:00</published><updated>2011-05-18T13:44:40.961+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='conversion'/><category scheme='http://www.blogger.com/atom/ns#' term='Date'/><category scheme='http://www.blogger.com/atom/ns#' term='Excel'/><title type='text'>Fixing incorrect interpretation of dd/mm/yyyy date in Excel</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/-PItR71y3H78/TdOwh5MjdeI/AAAAAAAADPs/fv67EXy0gCQ/s1600/obvious.PNG" imageanchor="1"&gt;&lt;img border="0" src="http://4.bp.blogspot.com/-PItR71y3H78/TdOwh5MjdeI/AAAAAAAADPs/fv67EXy0gCQ/s1600/obvious.PNG" /&gt;&lt;/a&gt;&lt;/div&gt;Assuming the data is sorted by date and considering other cases in the file, the first two lines are wrong.&lt;br /&gt;&lt;br /&gt;Here's the snippet I used to fix column D in col E.&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;=IF(ISNUMBER(D2);DATE(YEAR(D2);DAY(D2);MONTH(D2));DATE(YEAR(D2);MONTH(D2);DAY(D2)))&lt;/pre&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1434142189173368768-1500878856855438641?l=qoffice.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://qoffice.blogspot.com/feeds/1500878856855438641/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://qoffice.blogspot.com/2011/05/fixing-incorrect-interpretation-of.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1434142189173368768/posts/default/1500878856855438641'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1434142189173368768/posts/default/1500878856855438641'/><link rel='alternate' type='text/html' href='http://qoffice.blogspot.com/2011/05/fixing-incorrect-interpretation-of.html' title='Fixing incorrect interpretation of dd/mm/yyyy date in Excel'/><author><name>qubodup</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://1.bp.blogspot.com/_aj6f5lJ5nMc/S0KeDA2YJlI/AAAAAAAABIo/hLmNwzFIlQ8/S220/qubodupbox.png'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/-PItR71y3H78/TdOwh5MjdeI/AAAAAAAADPs/fv67EXy0gCQ/s72-c/obvious.PNG' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1434142189173368768.post-65853590146320716</id><published>2010-04-22T17:41:00.004+02:00</published><updated>2011-04-18T12:13:38.759+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='conversion'/><category scheme='http://www.blogger.com/atom/ns#' term='Date'/><category scheme='http://www.blogger.com/atom/ns#' term='Excel'/><category scheme='http://www.blogger.com/atom/ns#' term='Replace'/><title type='text'>Add leading zeros to dates in Excel [aka Get rid of/convert dates with no leading zeroes (d/m/yyyy or m/d/yyyy or d/m/yy or m/d/yy)]</title><content type='html'>I have a date format that has four forms which Excel can't handle&lt;a href="http://www.google.com/search?hl=en&amp;amp;q=microsoft+excel+anger+management"&gt;.&lt;/a&gt;&lt;br /&gt;&lt;pre&gt;1/4/2009&lt;br /&gt;9/13/2001&lt;br /&gt;12/12/1642&lt;br /&gt;11/3/2010&lt;/pre&gt;&lt;br /&gt;I need to convert them to a date. DATE() is fine. How to do it? This way:&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;=DATE(RIGHT(A2;4);LEFT(A2;FIND("/";A2)-1);MID(A2;FIND("/";A2)+1;IF(LEFT(RIGHT(A2;7);1)="/";1;2)))&lt;/pre&gt;&lt;br /&gt;Here's the German Excel version:&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;=DATUM("20"&amp;RECHTS(A2;2);TEIL(A2;FINDEN("/";A2)+1;WENN(LINKS(RECHTS(A2;7);1)="/";1;2));LINKS(A2;FINDEN("/";A2)-1))&lt;/pre&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/_aj6f5lJ5nMc/S9BsSM_MEAI/AAAAAAAABSA/k9P81xowBi8/s1600/getRidOfNoLeadingZerosDates.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="476" src="http://3.bp.blogspot.com/_aj6f5lJ5nMc/S9BsSM_MEAI/AAAAAAAABSA/k9P81xowBi8/s640/getRidOfNoLeadingZerosDates.png" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;Here's the code for dates in the d.m.yy format:&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;13.11.07&lt;br /&gt;3.12.07&lt;/pre&gt;&lt;br /&gt;&lt;pre&gt;=DATE("20"&amp;RIGHT(A2;2);MID(A2;FIND(".";A2)+1;IF(LEFT(RIGHT(A2;7);1)=".";1;2));LEFT(A2;FIND(".";A2)-1))&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1434142189173368768-65853590146320716?l=qoffice.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://qoffice.blogspot.com/feeds/65853590146320716/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://qoffice.blogspot.com/2010/04/get-rid-ofconvert-dates-with-no-leading.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1434142189173368768/posts/default/65853590146320716'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1434142189173368768/posts/default/65853590146320716'/><link rel='alternate' type='text/html' href='http://qoffice.blogspot.com/2010/04/get-rid-ofconvert-dates-with-no-leading.html' title='Add leading zeros to dates in Excel [aka Get rid of/convert dates with no leading zeroes (d/m/yyyy or m/d/yyyy or d/m/yy or m/d/yy)]'/><author><name>qubodup</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://1.bp.blogspot.com/_aj6f5lJ5nMc/S0KeDA2YJlI/AAAAAAAABIo/hLmNwzFIlQ8/S220/qubodupbox.png'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_aj6f5lJ5nMc/S9BsSM_MEAI/AAAAAAAABSA/k9P81xowBi8/s72-c/getRidOfNoLeadingZerosDates.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1434142189173368768.post-8707606818170647157</id><published>2010-04-20T14:44:00.002+02:00</published><updated>2010-09-02T14:08:11.390+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='PDF'/><category scheme='http://www.blogger.com/atom/ns#' term='Batch'/><category scheme='http://www.blogger.com/atom/ns#' term='conversion'/><category scheme='http://www.blogger.com/atom/ns#' term='Xpdf'/><category scheme='http://www.blogger.com/atom/ns#' term='Windows'/><category scheme='http://www.blogger.com/atom/ns#' term='GhostScript'/><category scheme='http://www.blogger.com/atom/ns#' term='Sed'/><category scheme='http://www.blogger.com/atom/ns#' term='PostScript'/><category scheme='http://www.blogger.com/atom/ns#' term='PATH'/><title type='text'>Edit/remove text/strings in/from PDF files/documents</title><content type='html'>I really need to get rid of "Word" in a pdf file I have. "Word" is just one word with no spaces and it appears on multiple pages in the document.&lt;br /&gt;&lt;br /&gt;My solution: Convert the pdf to ps, then remove/replace Word in the plaintext ps file, then convert it back to pdf.&lt;br /&gt;&lt;br /&gt;&lt;ol&gt;&lt;li&gt;Get/install &lt;a href="http://pages.cs.wisc.edu/~ghost/"&gt;Ghostscript&lt;/a&gt;, &lt;a href="http://gnuwin32.sourceforge.net/packages/sed.htm"&gt;Sed&lt;/a&gt; and &lt;a href="http://www.foolabs.com/xpdf/"&gt;Xpdf&lt;/a&gt;.&lt;/li&gt;&lt;li&gt;Create the file removeWordFromPDF.bat&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;@echo off&lt;br /&gt;if [%1]==[] goto help&lt;br /&gt;goto START&lt;br /&gt;&lt;br /&gt;:START&lt;br /&gt;echo Converting %1&lt;br /&gt;rem converting pdf to ps&lt;br /&gt;pdftops %1 %1temp.ps&lt;br /&gt;echo sed&lt;br /&gt;rem removing COPY and other strings&lt;br /&gt;sed -e s/(Word)/()/ ^&lt;br /&gt;&amp;nbsp;&amp;lt; %1temp.ps &amp;gt; %1tempNoWord.ps&lt;br /&gt;echo ps2pdf&lt;br /&gt;rem converting ps to pdf&lt;br /&gt;ps2pdf %1tempNoWord.ps %1NoWord.pdf&lt;br /&gt;exit&lt;br /&gt;&lt;br /&gt;:HELP&lt;br /&gt;echo There is no input pdf file for removing a COPY string&lt;/pre&gt;&lt;/li&gt;&lt;li&gt;Note 1: If "Word" is part of a longer word, you will have to remove one or both of the parentheses in the sed line&lt;/li&gt;&lt;li&gt;Note 2: If there are Unicode letters in "Word", you will need to convert the pdf to ps and open it in a text editor to find out what their code is.&lt;/li&gt;&lt;li&gt;Either add ";C:\Program Files\Ghostscript\gs8.70\lib" (or whatever version, whatever location you have installed to) to "Path" (see below) or replace the pdf2ps/ps2pdf/sed commands in the script with full paths to the executables.&lt;/li&gt;&lt;/ol&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/_aj6f5lJ5nMc/S82h5AkZuxI/AAAAAAAABR4/ZhkiCWdgoO8/s1600/path.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="404" src="http://1.bp.blogspot.com/_aj6f5lJ5nMc/S82h5AkZuxI/AAAAAAAABR4/ZhkiCWdgoO8/s640/path.png" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;You can now drag&amp;amp;drop pdf files on the .bat file.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1434142189173368768-8707606818170647157?l=qoffice.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://qoffice.blogspot.com/feeds/8707606818170647157/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://qoffice.blogspot.com/2010/04/editremove-textstrings-infrom-pdf.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1434142189173368768/posts/default/8707606818170647157'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1434142189173368768/posts/default/8707606818170647157'/><link rel='alternate' type='text/html' href='http://qoffice.blogspot.com/2010/04/editremove-textstrings-infrom-pdf.html' title='Edit/remove text/strings in/from PDF files/documents'/><author><name>qubodup</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://1.bp.blogspot.com/_aj6f5lJ5nMc/S0KeDA2YJlI/AAAAAAAABIo/hLmNwzFIlQ8/S220/qubodupbox.png'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_aj6f5lJ5nMc/S82h5AkZuxI/AAAAAAAABR4/ZhkiCWdgoO8/s72-c/path.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1434142189173368768.post-2545635564157415087</id><published>2010-01-18T17:35:00.005+01:00</published><updated>2010-01-18T18:28:16.135+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Date'/><category scheme='http://www.blogger.com/atom/ns#' term='Windows'/><category scheme='http://www.blogger.com/atom/ns#' term='Clock'/><category scheme='http://www.blogger.com/atom/ns#' term='Time'/><title type='text'>Display date and seconds in the taskbar clock</title><content type='html'>This one is really simple: Get &lt;a href="http://homepage1.nifty.com/kazubon/tclock/"&gt;TClock&lt;/a&gt;, extract it, run it, create a shortcut file to the executable in the Start/Programs/Startup directory.&lt;br /&gt;&lt;br /&gt;Right-click the clock to configure it.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_aj6f5lJ5nMc/S1SaG2MCeaI/AAAAAAAABJs/XsqfwxzaVEY/s1600-h/time.png"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 146px; height: 28px;" src="http://4.bp.blogspot.com/_aj6f5lJ5nMc/S1SaG2MCeaI/AAAAAAAABJs/XsqfwxzaVEY/s200/time.png" border="0" alt=""id="BLOGGER_PHOTO_ID_5428132893304191394" /&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1434142189173368768-2545635564157415087?l=qoffice.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://qoffice.blogspot.com/feeds/2545635564157415087/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://qoffice.blogspot.com/2010/01/display-date-and-seconds-in-taskbar.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1434142189173368768/posts/default/2545635564157415087'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1434142189173368768/posts/default/2545635564157415087'/><link rel='alternate' type='text/html' href='http://qoffice.blogspot.com/2010/01/display-date-and-seconds-in-taskbar.html' title='Display date and seconds in the taskbar clock'/><author><name>qubodup</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://1.bp.blogspot.com/_aj6f5lJ5nMc/S0KeDA2YJlI/AAAAAAAABIo/hLmNwzFIlQ8/S220/qubodupbox.png'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_aj6f5lJ5nMc/S1SaG2MCeaI/AAAAAAAABJs/XsqfwxzaVEY/s72-c/time.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1434142189173368768.post-191885616735857367</id><published>2010-01-15T22:48:00.015+01:00</published><updated>2010-04-23T10:40:51.095+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Batch'/><category scheme='http://www.blogger.com/atom/ns#' term='CSV'/><category scheme='http://www.blogger.com/atom/ns#' term='CMD'/><category scheme='http://www.blogger.com/atom/ns#' term='Compare'/><category scheme='http://www.blogger.com/atom/ns#' term='Excel'/><category scheme='http://www.blogger.com/atom/ns#' term='CLI'/><category scheme='http://www.blogger.com/atom/ns#' term='Replace'/><title type='text'>Compare/show difference between multiple Excel/CSV files/workbooks/sheets</title><content type='html'>I have screwed up important multi-sheet Excel workbooks and need to compare revisions of them. How do I do it?&lt;br /&gt;&lt;br /&gt;&lt;ol&gt;&lt;li&gt;&lt;a href="http://www.blogger.com/2010/01/i-have-bunch-of-excel-files-i-need-all.html"&gt;I export the sheets&lt;/a&gt;&lt;/li&gt;&lt;li&gt;I install the command-line tool &lt;a href="http://csvdiff.sourceforge.net/"&gt;csvdiff&lt;/a&gt;&lt;/li&gt;&lt;li&gt;I install &lt;a href="http://code.kliu.org/cmdopen/"&gt;Open Command Prompt Shell Extension&lt;/a&gt;, so I can open a CLI/Command line interface/shell in a folder by right-clicking in it and selecting "Open Command Prompt"&lt;/li&gt;&lt;li&gt;I start typing a lot:&lt;/li&gt;&lt;/ol&gt;&lt;br /&gt;&lt;pre&gt;&amp;gt;"C:\Program Files\csvdiff\bin\csvdiff.exe" -s "," -e "OldFile.csv" -a "NewFile.csv"&lt;/pre&gt;&lt;br /&gt;I write following .bat (Batch) file. Simply a "compare.txt" file with the ending changed to ".bat" ("compare.bat"). I put it in the folder with all the CSV files. In my case, I have ten revisions and I want to see the difference between two successive/sequenced revisions/versions of each sheet/file.&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;"C:\Program Files\csvdiff\bin\csvdiff.exe" -s "," -e "File (345).xlsSheet1.csv" -a "File (346).xlsSheet1.csv"&lt;br /&gt;"C:\Program Files\csvdiff\bin\csvdiff.exe" -s "," -e "File (346).xlsSheet1.csv" -a "File (347).xlsSheet1.csv"&lt;br /&gt;"C:\Program Files\csvdiff\bin\csvdiff.exe" -s "," -e "File (347).xlsSheet1.csv" -a "File (348).xlsSheet1.csv"&lt;br /&gt;"C:\Program Files\csvdiff\bin\csvdiff.exe" -s "," -e "File (348).xlsSheet1.csv" -a "File (349).xlsSheet1.csv"&lt;br /&gt;"C:\Program Files\csvdiff\bin\csvdiff.exe" -s "," -e "File (349).xlsSheet1.csv" -a "File (350).xlsSheet1.csv"&lt;br /&gt;"C:\Program Files\csvdiff\bin\csvdiff.exe" -s "," -e "File (350).xlsSheet1.csv" -a "File (351).xlsSheet1.csv"&lt;br /&gt;"C:\Program Files\csvdiff\bin\csvdiff.exe" -s "," -e "File (351).xlsSheet1.csv" -a "File (352).xlsSheet1.csv"&lt;br /&gt;"C:\Program Files\csvdiff\bin\csvdiff.exe" -s "," -e "File (352).xlsSheet1.csv" -a "File (353).xlsSheet1.csv"&lt;br /&gt;"C:\Program Files\csvdiff\bin\csvdiff.exe" -s "," -e "File (353).xlsSheet1.csv" -a "File (354).xlsSheet1.csv"&lt;br /&gt;"C:\Program Files\csvdiff\bin\csvdiff.exe" -s "," -e "File (354).xlsSheet1.csv" -a "File (355).xlsSheet1.csv"&lt;/pre&gt;&lt;br /&gt;I know, I know. Anyways, I use my text editor (I use &lt;a href="http://notepad-plus.sourceforge.net/uk/site.htm"&gt;notepad++&lt;/a&gt;) to replace "Sheet1" with "Sheet2" etc. (or whatever the sheet names are) since my workbooks are multi-sheet ones.&lt;br /&gt;&lt;br /&gt;The output might be overwhelming, so you should increase the CLI buffer size. Click on the CLI window's top left icon, select "Properties" and increase the Screen Buffer Size Height.&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/_aj6f5lJ5nMc/S1DtKeLg3GI/AAAAAAAABJc/9gw9aJ4XLOU/s1600-h/ya.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://4.bp.blogspot.com/_aj6f5lJ5nMc/S1DtKeLg3GI/AAAAAAAABJc/9gw9aJ4XLOU/s640/ya.png" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;I wish I knew how to effectively use the window command prompt/write batch files. Please comment if you know how to enhance the code. Perhaps by looping through all files that only differ in a number but are equal besides that and compare each increment?&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1434142189173368768-191885616735857367?l=qoffice.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://qoffice.blogspot.com/feeds/191885616735857367/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://qoffice.blogspot.com/2010/01/compareshow-difference-between-multiple.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1434142189173368768/posts/default/191885616735857367'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1434142189173368768/posts/default/191885616735857367'/><link rel='alternate' type='text/html' href='http://qoffice.blogspot.com/2010/01/compareshow-difference-between-multiple.html' title='Compare/show difference between multiple Excel/CSV files/workbooks/sheets'/><author><name>qubodup</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://1.bp.blogspot.com/_aj6f5lJ5nMc/S0KeDA2YJlI/AAAAAAAABIo/hLmNwzFIlQ8/S220/qubodupbox.png'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_aj6f5lJ5nMc/S1DtKeLg3GI/AAAAAAAABJc/9gw9aJ4XLOU/s72-c/ya.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1434142189173368768.post-2487552140674404405</id><published>2010-01-15T22:08:00.007+01:00</published><updated>2010-01-18T20:36:50.940+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Export'/><category scheme='http://www.blogger.com/atom/ns#' term='VBA'/><category scheme='http://www.blogger.com/atom/ns#' term='CSV'/><category scheme='http://www.blogger.com/atom/ns#' term='Excel'/><category scheme='http://www.blogger.com/atom/ns#' term='Macro'/><title type='text'>Export all sheets/pages in multiple Excel files/workbooks as CSV files</title><content type='html'>I have a bunch of Excel files, I need all of their sheets exported. This is how I do it: Open Excel (with no file open), Press Alt+F11, insert code from below, goto Tools/Macro/Macros and run the "Export_Sheets_as_CSV" macro. &lt;br /&gt;&lt;br /&gt;&lt;pre&gt;' Global variables&lt;br /&gt;Public FileCounter As Long&lt;br /&gt;Public FileNameArray&lt;br /&gt;&lt;br /&gt;Sub Export_Sheets_as_CSV()&lt;br /&gt;'&lt;br /&gt;' Export_CSP_CSV Macro&lt;br /&gt;' Export all Sheets as CSV files&lt;br /&gt;'&lt;br /&gt;&lt;br /&gt;    GetFileNames&lt;br /&gt;    For i = 1 To FileCounter&lt;br /&gt;        ' Open file i&lt;br /&gt;        Workbooks.Open FileName:=FileNameArray(i)&lt;br /&gt;        ProcessFile (FileNameArray(i))&lt;br /&gt;        ' Couldn't figure out how to close by name.. so I'm closing the 'current' workbook&lt;br /&gt;        ActiveWorkbook.Close False&lt;br /&gt;        'Workbooks(FileNameArray(i)).Close SaveChanges:=False&lt;br /&gt;    Next&lt;br /&gt;    &lt;br /&gt;End Sub&lt;br /&gt;&lt;br /&gt;Sub GetFileNames()&lt;br /&gt;' Select files and create array of their names&lt;br /&gt;&lt;br /&gt;    FileNameArray = Application.GetOpenFilename(, , , , True)&lt;br /&gt;    FileCounter = UBound(FileNameArray)&lt;br /&gt;    &lt;br /&gt;End Sub&lt;br /&gt;&lt;br /&gt;Sub ProcessFile(FileName)&lt;br /&gt;' Export every sheet in the file&lt;br /&gt;&lt;br /&gt;    ' Loop through and export sheets&lt;br /&gt;    For x = 1 To Sheets.Count&lt;br /&gt;        Sheets(x).Select&lt;br /&gt;        ActiveWorkbook.SaveAs FileName:=FileName &amp; Sheets(x).Name &amp; ".csv", FileFormat:=xlCSV, CreateBackup:=False&lt;br /&gt;    Next x&lt;br /&gt;    &lt;br /&gt;End Sub&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;I learned on the web how to: &lt;a href="http://www.exceltip.com/st/Close_a_workbook_using_VBA_in_Microsoft_Excel/469.html"&gt;close the active file/workbook&lt;/a&gt;, &lt;a href="http://www.mrexcel.com/archive/VBA/21823.html"&gt;do something with every sheet&lt;/a&gt;, &lt;a href="http://www.mail-archive.com/excel-macros@googlegroups.com/msg03404.html"&gt;merge/combine/concatenate/join multiple Excel files&lt;/a&gt; (or just do something with many Excel files).&lt;br /&gt;&lt;br /&gt;PS: Please, oh please do post improvements to this script if you make any! :)&lt;br /&gt;&lt;br /&gt;PPS: Newlines or "\n"s or "LF"s, which you can insert by pressing Alt+Enter in Excel, get exported as well. This causes trouble of course, as a newline indicates a new row in a CSV file. They need to be removed.&lt;br /&gt;&lt;br /&gt;I open the affected files in &lt;a href="http://notepad-plus.sourceforge.net/uk/site.htm"&gt;Notepad++&lt;/a&gt; and enable "View/Show all characters" to see them:&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_aj6f5lJ5nMc/S1Svq1bJtkI/AAAAAAAABJ8/G0upqjhWU_E/s1600-h/porblem.png"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 241px; height: 104px;" src="http://3.bp.blogspot.com/_aj6f5lJ5nMc/S1Svq1bJtkI/AAAAAAAABJ8/G0upqjhWU_E/s400/porblem.png" border="0" alt=""id="BLOGGER_PHOTO_ID_5428156601318618690" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;The obvious pattern is that unwanted line breaks only have a newline/"\n"/"LF", while wanted also have a carriage return/"\r"/"CR". The solution to my problem is to replace all newlines that have no carriage returns directly before them with nothing. The regular expression to find what I just described is "[^\r]\n". However, it won't work in Notepad++. I don't know why. &lt;a href="http://sourceforge.net/apps/mediawiki/notepad-plus/index.php?title=Replacing_Newlines"&gt;This wiki page&lt;/a&gt; is unfortunately unable to help. My solution is to use the extended search function to first replace "\r\n" with "thisStringIsSafe", then "\n" with "" and then "thisStringIsSafe" with "\r\n".&lt;br /&gt;&lt;br /&gt;I learned about newlines and carriage returns &lt;a href="http://forum.soft32.com/windows/Notepad-line-character-ftopict360735.html"&gt;here&lt;/a&gt;, and was able to construct a regular expression thanks to &lt;a href="http://notepad-plus.sourceforge.net/uk/regExpList.php"&gt;this overview&lt;/a&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1434142189173368768-2487552140674404405?l=qoffice.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://qoffice.blogspot.com/feeds/2487552140674404405/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://qoffice.blogspot.com/2010/01/i-have-bunch-of-excel-files-i-need-all.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1434142189173368768/posts/default/2487552140674404405'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1434142189173368768/posts/default/2487552140674404405'/><link rel='alternate' type='text/html' href='http://qoffice.blogspot.com/2010/01/i-have-bunch-of-excel-files-i-need-all.html' title='Export all sheets/pages in multiple Excel files/workbooks as CSV files'/><author><name>qubodup</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://1.bp.blogspot.com/_aj6f5lJ5nMc/S0KeDA2YJlI/AAAAAAAABIo/hLmNwzFIlQ8/S220/qubodupbox.png'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_aj6f5lJ5nMc/S1Svq1bJtkI/AAAAAAAABJ8/G0upqjhWU_E/s72-c/porblem.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1434142189173368768.post-5135756452603155489</id><published>2010-01-15T20:12:00.003+01:00</published><updated>2010-01-15T20:55:24.958+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Languages'/><category scheme='http://www.blogger.com/atom/ns#' term='AHK'/><category scheme='http://www.blogger.com/atom/ns#' term='Input'/><category scheme='http://www.blogger.com/atom/ns#' term='Windows'/><title type='text'>Map different keys to äöüÄÖÜß in Windows with AHK</title><content type='html'>I prefer the US keyboard layout, because software is designed for it and because it is more comfortable for programming than the German/DE one. However, I need to communicate in German often. My solution so far was to have two Keyboard layouts: German and USA and I would switch between them using Alt+Shift. This solution is horrible, still I used it for years.&lt;br /&gt;&lt;br /&gt;There is the US international keyboard layout, but I use ";" and the like more often than Umlauts, so no.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.autohotkey.com/"&gt;AutoHotKey&lt;/a&gt;&amp;nbsp;lets you map keys. I wanted WinKey+a (or AoOuUs) to create ä (or ÄöÖüÜß). I also wanted the same in combination with the right Alt key, to see which would be more comfortable for me. The following code did it. It is based on &lt;a href="http://www.autohotkey.com/forum/viewtopic.php?p=311737#311737"&gt;this&lt;/a&gt;&amp;nbsp;and was improved with the help of &lt;a href="http://webchat.freenode.net/?channels=autohotkey"&gt;#autohotkey&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;; # is the Win key&lt;br /&gt;#a:: Send {ASC 0228}&lt;br /&gt;#o:: Send {ASC 0246}&lt;br /&gt;#u:: Send {ASC 0252}&lt;br /&gt;#s:: Send {ASC 0223}&lt;br /&gt;&lt;br /&gt;; + is Shift&lt;br /&gt;#+a:: Send {ASC 0196}&lt;br /&gt;#+o:: Send {ASC 0214}&lt;br /&gt;#+u:: Send {ASC 0220}&lt;br /&gt;&lt;br /&gt;; &amp;gt;! is the right Alt key&lt;br /&gt;&amp;gt;!a:: Send {ASC 0228}&lt;br /&gt;&amp;gt;!o:: Send {ASC 0246}&lt;br /&gt;&amp;gt;!u:: Send {ASC 0252}&lt;br /&gt;&amp;gt;!s:: Send {ASC 0223}&lt;br /&gt;&lt;br /&gt;&amp;gt;!+a:: Send {ASC 0196}&lt;br /&gt;&amp;gt;!+o:: Send {ASC 0214}&lt;br /&gt;&amp;gt;!+u:: Send {ASC 0220}&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;Look &lt;a href="http://www.autohotkey.com/docs/Hotkeys.htm"&gt;what AHK can do for you&lt;/a&gt;!!!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1434142189173368768-5135756452603155489?l=qoffice.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://qoffice.blogspot.com/feeds/5135756452603155489/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://qoffice.blogspot.com/2010/01/map-different-keys-to-aouaou-windows.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1434142189173368768/posts/default/5135756452603155489'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1434142189173368768/posts/default/5135756452603155489'/><link rel='alternate' type='text/html' href='http://qoffice.blogspot.com/2010/01/map-different-keys-to-aouaou-windows.html' title='Map different keys to äöüÄÖÜß in Windows with AHK'/><author><name>qubodup</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://1.bp.blogspot.com/_aj6f5lJ5nMc/S0KeDA2YJlI/AAAAAAAABIo/hLmNwzFIlQ8/S220/qubodupbox.png'/></author><thr:total>0</thr:total></entry></feed>
