<?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:blogger='http://schemas.google.com/blogger/2008' 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-557084482818304359</id><updated>2014-10-05T01:54:40.521-05:00</updated><category term="Beginner"/><category term="Excel"/><category term="blah"/><title type='text'>blog.vbmacros.com</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://blog.vbmacros.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/557084482818304359/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://blog.vbmacros.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Scott Chase</name><uri>http://www.blogger.com/profile/05074450720356857750</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>4</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-557084482818304359.post-4980489301930663035</id><published>2008-02-13T08:54:00.001-06:00</published><updated>2008-02-13T08:54:43.852-06:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Beginner"/><category scheme="http://www.blogger.com/atom/ns#" term="Excel"/><title type='text'>Two is better than ... three?</title><content type='html'>&lt;p&gt;In my previous post (&lt;a href=&quot;http://blog.vbmacros.com/2008/02/out-of-gates.html&quot;&gt;Out of the Gates&lt;/a&gt;) we modified a recorded macro to perform steps with locations relative to the starting point rather than absolute locations on the spreadsheet.&amp;#160; The modified macro allowed us to start at any location in the spreadsheet and the actions would perform in locations relative to our starting point.&amp;#160; However, our modified macro still included 3 lines of code like our original.&amp;#160; &lt;/p&gt;  &lt;blockquote&gt;   &lt;p&gt;* By the way, the default mode during recording is to record absolute addresses.&amp;#160; But here is an article describing a step to make your macro record with relative addresses (&lt;a href=&quot;http://support.microsoft.com/kb/213740&quot;&gt;http://support.microsoft.com/kb/213740&lt;/a&gt;).&lt;/p&gt; &lt;/blockquote&gt;  &lt;p&gt;Sometimes when recording a macro, extra steps are recorded that are not necessary to accomplish the desired result.&amp;#160; As in our example from the previous post we pressed the right arrow, entered a 1, and then pressed the left arrow.&amp;#160; This seems like 3 logical steps.&amp;#160; But the desired result is to put a 1 in the cell to the right of our starting cell and move the selection to the cell immediately below our starting cell.&amp;#160; That can be done in 2 steps.&lt;/p&gt;  &lt;p&gt;The first step is to put a 1 in the cell to the adjacent cell to our right.&amp;#160; So, we use this command:&amp;#160; &lt;/p&gt;  &lt;blockquote&gt;   &lt;p&gt;ActiveCell.Offset(0,1).FormulaR1C1 = &amp;quot;1&amp;quot;&lt;/p&gt; &lt;/blockquote&gt;  &lt;p&gt;The above command is basically a shortcut to complete steps 1 and 2 of our previous macro.&amp;#160; Instead of moving our selection, we just tell the macro to place a 1 in the referenced cell.&amp;#160; Start with the current cell, offset 1 to the right, and set the formula to = 1.&lt;/p&gt;  &lt;p&gt;The second step is just moving the cursor to finish out the macro.&amp;#160; This leaves our final macro code as:&lt;/p&gt;  &lt;pre class=&quot;code&quot;&gt;&lt;span style=&quot;color: rgb(204,120,50)&quot;&gt;&lt;span style=&quot;background: rgb(0,0,0)&quot;&gt;Sub&lt;/span&gt;&lt;span style=&quot;color: rgb(255,255,255)&quot;&gt; Macro1()&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: rgb(128,128,128)&quot;&gt;&#39;&lt;br /&gt;&#39; Macro1 Macro&lt;br /&gt;&#39; Two is better than ... three?&lt;br /&gt;&#39;&lt;br /&gt;&#39; Keyboard Shortcut: Ctrl+g&lt;br /&gt;&#39;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: rgb(255,255,255)&quot;&gt;    ActiveCell.Offset(&lt;/span&gt;&lt;span style=&quot;color: rgb(104,151,187)&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: rgb(255,255,255)&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: rgb(104,151,187)&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: rgb(255,255,255)&quot;&gt;).FormulaR1C1 = &lt;/span&gt;&lt;span style=&quot;color: rgb(165,194,92)&quot;&gt;&amp;quot;1&amp;quot;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: rgb(255,255,255)&quot;&gt;    ActiveCell.Offset(&lt;/span&gt;&lt;span style=&quot;color: rgb(104,151,187)&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: rgb(255,255,255)&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: rgb(104,151,187)&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: rgb(255,255,255)&quot;&gt;).Select&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: rgb(204,120,50)&quot;&gt;End&lt;/span&gt;&lt;span style=&quot;color: rgb(255,255,255)&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: rgb(204,120,50)&quot;&gt;Sub&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;br /&gt;&lt;a href=&quot;http://11011.net/software/vspaste&quot;&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;Notice that our second line of code (previously line 3) has changed also.&amp;#160; Because we did not move our cursor position in step 1 we only need to move the cursor down 1 row as opposed to before when we moved down 1 row and left 1 column.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;In this example we reduced our code to 2 lines from 3.&amp;#160; You probably will not notice a speed increase from doing so.&amp;#160; But imagine if we had a macro of 300 lines that we reduced to 200 lines.&amp;#160; Most computers I deal with will process 200 lines faster than 300.&amp;#160; ;)&lt;/p&gt;  </content><link rel='replies' type='application/atom+xml' href='http://blog.vbmacros.com/feeds/4980489301930663035/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=557084482818304359&amp;postID=4980489301930663035' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/557084482818304359/posts/default/4980489301930663035'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/557084482818304359/posts/default/4980489301930663035'/><link rel='alternate' type='text/html' href='http://blog.vbmacros.com/2008/02/two-is-better-than-three.html' title='Two is better than ... three?'/><author><name>Scott Chase</name><uri>http://www.blogger.com/profile/05074450720356857750</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-557084482818304359.post-5145507772502909452</id><published>2008-02-12T12:20:00.001-06:00</published><updated>2008-02-12T13:30:48.853-06:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Beginner"/><category scheme="http://www.blogger.com/atom/ns#" term="Excel"/><title type='text'>Out of the Gates</title><content type='html'>&lt;p&gt;In my previous post (&lt;a href=&quot;http://blog.vbmacros.com/2008/02/getting-started.html&quot;&gt;Getting Started&lt;/a&gt;) I demonstrated how to record a macro to do a simple task.&amp;#160; I also showed how to open the VB Editor and examine the recorded macro which is VB code.&lt;/p&gt;  &lt;p&gt;In this post, I want to take that macro a step further.&amp;#160; In the former post, we started the macro recorder with A1 as our selected cell.&amp;#160; Next we pressed our right arrow key and then typed a 1 (one).&amp;#160; Next we pressed enter and then pressed the left arrow and stopped the recorder.&amp;#160; The result was that we had a macro that moves to cell B1 and places a 1 in the cell and then moves to cell A2.&lt;/p&gt;  &lt;p&gt;This time we want to make the locations relative to our starting point and not the absolute addresses.&amp;#160; So let&#39;s get started.&amp;#160; Go to the previous post and follow those steps to get the macro to the point where we left off in &lt;a href=&quot;http://blog.vbmacros.com/2008/02/getting-started.html&quot;&gt;Getting Started&lt;/a&gt;.&lt;/p&gt;  &lt;p&gt;Ready?&amp;#160; Great!&amp;#160; Open your VB Editor and pull up the Module1 window.&amp;#160; You should now be viewing Macro1() in the code window.&amp;#160; You can change the comment from getting started to &amp;quot;out of the gates&amp;quot; if you wish but as I said before... comments are for informational (and documentation) purposes only.&amp;#160; The macro is not affected either way.&lt;/p&gt;  &lt;p&gt;Instead of giving an absolute location like B1 we want to tell the macro to go right 1 cell.&amp;#160; For that, I use the command:&lt;/p&gt;  &lt;blockquote&gt;   &lt;p&gt;activecell.offset(0,1).select&lt;/p&gt; &lt;/blockquote&gt;  &lt;p&gt;What we are telling the macro is to start at the current selection and move an offset of 0 rows and 1 column (that is 1 cell to the right).&amp;#160; Then we select it.&amp;#160; That will move the selected cell 1 position to the right.&amp;#160; So replace the first line of code [Range(&amp;quot;B1&amp;quot;).Select] with the new code above.&lt;/p&gt;  &lt;p&gt;The second line of code is responsible for placing the 1 in the cell.&amp;#160; We&#39;ll keep that like it is.&lt;/p&gt;  &lt;p&gt;Can you guess what the third line of code will change to?&amp;#160; We don&#39;t have to just use positive numbers in our offset -- we can use negative numbers as well.&amp;#160; So our final result of code will be:&lt;/p&gt;  &lt;pre class=&quot;code&quot;&gt;&lt;span style=&quot;color: rgb(204,120,50)&quot;&gt;&lt;span style=&quot;background: rgb(0,0,0)&quot;&gt;Sub&lt;/span&gt;&lt;span style=&quot;color: rgb(255,255,255)&quot;&gt; Macro1()&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: rgb(128,128,128)&quot;&gt;&#39;&lt;br /&gt;&#39; Macro1 Macro&lt;br /&gt;&#39; Out of the Gates&lt;br /&gt;&#39;&lt;br /&gt;&#39; Keyboard Shortcut: Ctrl+g&lt;br /&gt;&#39;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: rgb(255,255,255)&quot;&gt;    ActiveCell.Offset(&lt;/span&gt;&lt;span style=&quot;color: rgb(104,151,187)&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: rgb(255,255,255)&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: rgb(104,151,187)&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: rgb(255,255,255)&quot;&gt;).Select&lt;br /&gt;    ActiveCell.FormulaR1C1 = &lt;/span&gt;&lt;span style=&quot;color: rgb(165,194,92)&quot;&gt;&amp;quot;1&amp;quot;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: rgb(255,255,255)&quot;&gt;    ActiveCell.Offset(&lt;/span&gt;&lt;span style=&quot;color: rgb(104,151,187)&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: rgb(255,255,255)&quot;&gt;, -&lt;/span&gt;&lt;span style=&quot;color: rgb(104,151,187)&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: rgb(255,255,255)&quot;&gt;).Select&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: rgb(204,120,50)&quot;&gt;End&lt;/span&gt;&lt;span style=&quot;color: rgb(255,255,255)&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: rgb(204,120,50)&quot;&gt;Sub&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;br /&gt;&lt;a href=&quot;http://11011.net/software/vspaste&quot;&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;Did you catch that both numbers needed to change?&amp;#160; After our first line of code we were positioned 1 cell to the right of our starting point.&amp;#160; The second line of code changed the contents but did not move down a row like pressing enter manually.&amp;#160; So our third line of code needs to move the selection down 1 row and back to the left 1 row.&amp;#160; That is why we have (1,-1).&amp;#160; The first number refers to the row offset (positive is down) and the second number is the column offset (positive moves right).&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;Now go back to the spreadsheet and press Ctrl-g to run the macro.&amp;#160; Press it again.&amp;#160; Change your starting position to cell C3 and press Ctrl-g again.&amp;#160; Notice that no matter where we start our macro, that a 1 is placed immediately to the right of the starting cell and the macro finishes by selecting the cell just below our starting cell.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;Now you&#39;re out of the gates with vb macros, so to speak.&amp;#160; Nothing holding you back...&amp;#160; You can have a macro move the selection all around.&amp;#160; Check back later and I&#39;ll show you how to improve this macro with 3 lines of code and reduce it to just 2 lines.&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='http://blog.vbmacros.com/feeds/5145507772502909452/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=557084482818304359&amp;postID=5145507772502909452' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/557084482818304359/posts/default/5145507772502909452'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/557084482818304359/posts/default/5145507772502909452'/><link rel='alternate' type='text/html' href='http://blog.vbmacros.com/2008/02/out-of-gates.html' title='Out of the Gates'/><author><name>Scott Chase</name><uri>http://www.blogger.com/profile/05074450720356857750</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-557084482818304359.post-8228676187379215302</id><published>2008-02-11T10:09:00.001-06:00</published><updated>2008-02-12T13:33:26.285-06:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Beginner"/><category scheme="http://www.blogger.com/atom/ns#" term="Excel"/><title type='text'>Getting Started</title><content type='html'>&lt;p&gt;How do I get started writing vb macros?&amp;#160; The best way I know is to just jump right in.&amp;#160; So let&#39;s get started in Excel.&lt;/p&gt;  &lt;p&gt;Open MS Excel.&amp;#160; You should have a blank worksheet sitting before you with the selected cell of A1.&amp;#160; We will actually record a macro first and then tweak it to do what we want.&lt;/p&gt;  &lt;p&gt;[For Office 2007 users] Click the Developer tab on the ribbon bar.&amp;#160; Next, click the Record Macro menu item.&lt;/p&gt;  &lt;p&gt;[For Office 2003 users] In the menu bar, click Tools, then Macros, then Record Macro.&lt;/p&gt;  &lt;p&gt;Now you have a dialog box requesting some information before we actually start recording.&amp;#160; It asks for a macro name which is Macro1 by default.&amp;#160; It asks for a shortcut key which will be combined with the control key to allow us to quickly start the macro.&amp;#160; It asks where we want to store the macro.&amp;#160; Finally, it asks for an optional description for the macro.&lt;/p&gt;  &lt;p&gt;We will leave the macro name the default of Macro1.&amp;#160; Let&#39;s assign the letter &amp;quot;g&amp;quot; as our shortcut for GO.&amp;#160; We will keep the macro in the current workbook and for the description we will use &amp;quot;getting started&amp;quot;.&amp;#160; Next, click OK.&lt;/p&gt;  &lt;p&gt;It looks like nothing has happened.&amp;#160; But it has.&amp;#160; We are now in recording mode.&amp;#160; All the steps you take, the macro will keep a record and be able to play them back later.&amp;#160; In Office 2003, you probably saw a new toolbar appear (possibly somewhere in your spreadsheet) with a red square to stop the macro.&amp;#160; In Office 2007, the menu item that formerly read Record Macro now reads Stop Recording.&lt;/p&gt;  &lt;p&gt;Press your right arrow key to move the selection to cell B1.&amp;#160; Type 1 and then press enter.&amp;#160; Press your left arrow key to move to cell A2.&amp;#160; Now press the Stop Recording button.&lt;/p&gt;  &lt;p&gt;To test our new macro, delete the contents of B1 and click on cell A1.&amp;#160; Now press Ctrl-g.&amp;#160; You should now see the 1 again in cell B1.&amp;#160; Not very exciting, I know, but we&#39;re just getting started.&lt;/p&gt;  &lt;p&gt;Let&#39;s take a look at the vb code to perform such an act.&amp;#160; Press Alt-F11 to bring up your Visual Basic Editor.&amp;#160; Expand the Modules folder by clicking the + to the left of the folder.&amp;#160; Double click Module1.&amp;#160; You now see the vb code that drives Macro1.&amp;#160; A comment begins with an apostrophe (&#39;) and continues to the end of the line.&amp;#160; The VB Editor colors it green.&amp;#160; A comment is ignored by the macro and is for informational purposes only.&lt;/p&gt;  &lt;pre class=&quot;code&quot;&gt;&lt;span style=&quot;color: rgb(204,120,50)&quot;&gt;&lt;span style=&quot;background: rgb(0,0,0)&quot;&gt;Sub&lt;/span&gt;&lt;span style=&quot;color: rgb(255,255,255)&quot;&gt; Macro1()&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: rgb(128,128,128)&quot;&gt;&#39;&lt;br /&gt;&#39; Macro1 Macro&lt;br /&gt;&#39; getting started&lt;br /&gt;&#39;&lt;br /&gt;&#39; Keyboard Shortcut: Ctrl+g&lt;br /&gt;&#39;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: rgb(255,255,255)&quot;&gt;    Range(&lt;/span&gt;&lt;span style=&quot;color: rgb(165,194,92)&quot;&gt;&amp;quot;B1&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: rgb(255,255,255)&quot;&gt;).Select&lt;br /&gt;    ActiveCell.FormulaR1C1 = &lt;/span&gt;&lt;span style=&quot;color: rgb(165,194,92)&quot;&gt;&amp;quot;1&amp;quot;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: rgb(255,255,255)&quot;&gt;    Range(&lt;/span&gt;&lt;span style=&quot;color: rgb(165,194,92)&quot;&gt;&amp;quot;A2&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: rgb(255,255,255)&quot;&gt;).Select&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: rgb(204,120,50)&quot;&gt;End&lt;/span&gt;&lt;span style=&quot;color: rgb(255,255,255)&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: rgb(204,120,50)&quot;&gt;Sub&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;br /&gt;&lt;a href=&quot;http://11011.net/software/vspaste&quot;&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;Notice our first code line inside the macro says Range(&amp;quot;B1&amp;quot;).Select&amp;#160; .&amp;#160; The Range command identifies a single location or range of locations.&amp;#160; The .Select following the range tells what operation to perform on that Range.&amp;#160; We pressed our right arrow but Excel viewed that as selecting cell B1.&amp;#160; &lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;The second statement reads ActiveCell.FormulaR1C1 = &amp;quot;1&amp;quot;.&amp;#160; Here the macro is given the instruction to take the active cell (which is now B1) and set it&#39;s formula to equal 1 (which is what we typed).&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;The third and final statement reads Range(&amp;quot;A2&amp;quot;).Select.&amp;#160; We pressed our left arrow but Excel interpreted that as a selection of cell A2.&amp;#160; And then our macro ends.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;I wanted to use this example for several reasons.&amp;#160; I wanted to show an easy way to get familiar with the vb code needed to perform common tasks.&amp;#160; If you don&#39;t know how to write the vb code to do something, then first record a macro to do it and examine the code.&amp;#160; Also, this example shows that what you think you told the recorder might not be what is actually getting recorded.&amp;#160; For instance, we pressed our arrow keys but the recorder captured absolute locations on the spreadsheet.&amp;#160; If we needed our macro to always move 1 cell to the right and the after pressing enter move 1 cell to the left, then this macro would not work for us.&amp;#160; No matter where our current selection is when we start the macro, the macro will always go to cell B1, put a 1, and then return to cell A2.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;Check back and I&#39;ll show you how to take this same macro and make it work with relative positions.&lt;/p&gt;  </content><link rel='replies' type='application/atom+xml' href='http://blog.vbmacros.com/feeds/8228676187379215302/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=557084482818304359&amp;postID=8228676187379215302' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/557084482818304359/posts/default/8228676187379215302'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/557084482818304359/posts/default/8228676187379215302'/><link rel='alternate' type='text/html' href='http://blog.vbmacros.com/2008/02/getting-started.html' title='Getting Started'/><author><name>Scott Chase</name><uri>http://www.blogger.com/profile/05074450720356857750</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-557084482818304359.post-4847011099002772904</id><published>2008-02-08T14:41:00.001-06:00</published><updated>2008-02-08T15:00:29.563-06:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="blah"/><title type='text'>au·to·ma·tion (noun)</title><content type='html'>&lt;p&gt;&lt;a href=&quot;http://dictionary.reference.com/browse/automation&quot; target=&quot;_blank&quot;&gt;Dictionary.com&lt;/a&gt; defines automation as the technique, method, or system of operating or controlling a process by highly automatic means, as by electronic devices, reducing human intervention to a minimum. &lt;/p&gt;  &lt;p&gt;I will do my best to provide short, clear techniques to automate everyday processes by using vb macros.&amp;#160; Microsoft Office has been using VBA (Visual Basic for Applications) since 1993.&amp;#160; Before that time, macros in Excel were a series of keystrokes or shortcut commands.&amp;#160; With VBA you have much wider options in dealing with automation such as using IF...THEN to compare situations or DO...WHILE to perform iterative loops.&lt;/p&gt;  &lt;p&gt;Future posts will include code snippets that perform specific tasks.&amp;#160; And I&#39;ll probably throw in some Excel formula examples from time to time.&amp;#160; Automation is all about doing something faster or without the use of human control.&amp;#160; Sometimes a well thought out formula is all you need.&amp;#160; Other times we can write a User Defined Function (UDF) in VB and let the code do all the work and pass us back the answer.&lt;/p&gt;  &lt;p&gt;The point is you&#39;ll want to check back here often for helpful tips on automating your office.&amp;#160; You can expect to see tips for much of the Microsoft Office Suite including MS Excel, MS Word, MS Access, and occasionally MS Outlook.&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='http://blog.vbmacros.com/feeds/4847011099002772904/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=557084482818304359&amp;postID=4847011099002772904' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/557084482818304359/posts/default/4847011099002772904'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/557084482818304359/posts/default/4847011099002772904'/><link rel='alternate' type='text/html' href='http://blog.vbmacros.com/2008/02/automation-noun.html' title='au·to·ma·tion (noun)'/><author><name>Scott Chase</name><uri>http://www.blogger.com/profile/05074450720356857750</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>