tag:blogger.com,1999:blog-7162719059092086432024-02-18T18:11:47.576-08:00Microsoft Excel macro and FormulaLearn How to use Macro in Microsoft Excel,Free tutorial, Tricks and TipsUnknownnoreply@blogger.comBlogger11125tag:blogger.com,1999:blog-716271905909208643.post-50934262818648265262015-08-14T00:35:00.000-07:002015-08-14T07:19:05.512-07:00How to remove duplicate rows using VBA code?<div class="WordSection1">
<div class="MsoNormal">
<span class="htmltag1"><span lang="EN-MY">I have excel sheet with data up to 5k rows. What I need to do is to remove duplicate rows having similar value at Column A and C. The problem now I need to combine data at Column F before I can delete duplicate rows. By using formula I don’t think it will work. Therefore I have to write Macro to perform this work. The code that work as below. Hope this code will help who ever have same problem.<o:p></o:p></span></span></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<span class="htmltag1"><span lang="EN-MY"><</span></span><span class="htmlelm1"><span lang="EN-MY">pre</span></span><span class="htmltag1"><span lang="EN-MY"> </span></span><span class="htmlatr1"><span lang="EN-MY">style</span></span><span class="htmltag1"><span lang="EN-MY">=</span></span><span class="htmlval1"><span lang="EN-MY">"overflow: auto; width: 94%;"</span></span><span class="htmltag1"><span lang="EN-MY">><o:p></o:p></span></span></div>
<div class="MsoNormal">
<span style="color: #1f497d;">Option Explicit<o:p></o:p></span></div>
<div class="MsoNormal">
<span style="color: #1f497d;">Sub RemoveDuplicateAndBringUpCommon()<o:p></o:p></span></div>
<div class="MsoNormal">
<span style="color: #1f497d;"> Dim x As Long, y As Long<o:p></o:p></span></div>
<div class="MsoNormal">
<span style="color: #1f497d;"> Dim ActWs As Worksheet<o:p></o:p></span></div>
<div class="MsoNormal">
<span style="color: #1f497d;"> Set ActWs = ActiveSheet<o:p></o:p></span></div>
<div class="MsoNormal">
<span style="color: #1f497d;"> x = 2<o:p></o:p></span></div>
<div class="MsoNormal">
<span style="color: #1f497d;"> y = x + 1<o:p></o:p></span></div>
<div class="MsoNormal">
<span style="color: #1f497d;"> Do While ActWs.Range("C" & x).Value <> ""<o:p></o:p></span></div>
<div class="MsoNormal">
<span style="color: #1f497d;"> Do While ActWs.Range("C" & y).Value <> ""<o:p></o:p></span></div>
<div class="MsoNormal">
<span style="color: #1f497d;"> If ActWs.Range("A" & x).Value = ActWs.Range("A" & y).Value And _<o:p></o:p></span></div>
<div class="MsoNormal">
<span style="color: #1f497d;"> ActWs.Range("C" & x).Value = ActWs.Range("C" & y) Then<o:p></o:p></span></div>
<div class="MsoNormal">
<span style="color: #1f497d;"> ActWs.Range("F" & x) = ActWs.Range("F" & x) & "," & ActWs.Range("F" & y)<o:p></o:p></span></div>
<div class="MsoNormal">
<span style="color: #1f497d;"> ActWs.Rows(y).EntireRow.Delete<o:p></o:p></span></div>
<div class="MsoNormal">
<span style="color: #1f497d;"> Else<o:p></o:p></span></div>
<div class="MsoNormal">
<span style="color: #1f497d;"> y = y + 1<o:p></o:p></span></div>
<div class="MsoNormal">
<span style="color: #1f497d;"> End If<o:p></o:p></span></div>
<div class="MsoNormal">
<span style="color: #1f497d;"> Loop<o:p></o:p></span></div>
<div class="MsoNormal">
<span style="color: #1f497d;"> x = x + 1<o:p></o:p></span></div>
<div class="MsoNormal">
<span style="color: #1f497d;"> y = x + 1<o:p></o:p></span></div>
<div class="MsoNormal">
<span style="color: #1f497d;"> Loop<o:p></o:p></span></div>
<div class="MsoNormal">
<span style="color: #1f497d;">End Sub<o:p></o:p></span></div>
<div class="MsoNormal">
<span class="htmltag1"><span lang="EN-MY"><pre><o:p></o:p></span></span></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<span class="htmltag1"><span lang="EN-MY">Please help to share or comment if got better ideas.<o:p></o:p></span></span></div>
<div class="MsoNormal">
<span class="htmltag1"><span lang="EN-MY">Thank You.</span></span></div>
</div>
Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-716271905909208643.post-49628062467571779392015-07-27T07:44:00.000-07:002015-07-27T07:45:46.637-07:00How to record or run macro from Microsoft Excel 2007?<div class="WordSection1">
<div class="MsoNormal">
In Excel 2007 you can record and playback macro from “View” tab, at the right end click at macro you’re able to see the optional either view macro or record macro. Another method is through Developer tab but this tab by default is hidden. To show “Developer” tab you must go to Office button (top left corner) and click, Another window open and click at Excel Options, under “Popular” label you must tick at “Show developer tab in the ribbon” and click OK. Under this “Developer” tab you are able to see Visual Basic Editor, Available Macros, Record Macro, security setting and etc.<o:p></o:p></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
Thanks</div>
</div>
Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-716271905909208643.post-39753810277738016062015-07-27T07:43:00.000-07:002015-07-27T07:45:31.102-07:00How to save your recorded macro in Microsoft Excel 2007?<div class="WordSection1">
<div class="MsoNormal">
<span style="color: #1f497d;">In previous version of Microsoft Excel with or without macro the file extension will be the same which is (Filename.xls) but when we use Microsoft Excel 2007 and onward the file extension will be different. Without Macro (Filename.xlsx) and with macro (Filename.xlsm), Therefore when you save file with macro you must select save as type “Excel Macro-Enable Workbook” instead of “Excel Workbook” otherwise your macro will be gone.<o:p></o:p></span></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<span style="color: #1f497d;">Thanks</span></div>
</div>
Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-716271905909208643.post-60320207661758696582014-09-03T06:19:00.002-07:002014-09-03T06:19:29.985-07:00How to check available Rows in Microsoft Excel Using VBA?Hi,<br />
<br />
Some time people is still using Microsoft Excel 2003 and certain may up to 2010. Major different between these version is number of rows available. So to set stop point when we loop using VBA code we need to know number of rows available. Below code will trigger this point.<br />
<br />
Cells.Rows.Count<br />
<br />
Please try it and comment. ThanksUnknownnoreply@blogger.com1tag:blogger.com,1999:blog-716271905909208643.post-12780440096819588052007-03-02T06:47:00.000-08:002007-03-02T07:38:31.113-08:00How to Open Visual Code for the recorded Macro?As I mentioned earlier Macro actually using visual basic programming language to perform given task. In order for you create more complicated macro it will be more better for you to understand the basic programming language which is VB. This learning process will be more easier after you record the macro immediately check the VB code. Record ---then Check the VB code. After several time now you will understand What code to be use for the specific task given. There are many ways to open our visual basic editor:<br /><span style="font-weight: bold;">1st Method:</span><br /><br /><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgSBiQaUZCTP0R9NUSS0r-81GM7EUlGaJ2_cnGGBdc4zJR41eF-t4a6bMp9cb3M34Imvw_pnzYUk0qWIEhPSUQ6Cop7dh3lJgNM3LhOLBtXQOe_55_ZDgBzGSGHX_8TD_WxGr69c7LjOvE/s1600-h/Microsoft+Excel+Macro-Open+VB+Editor.JPG"><img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgSBiQaUZCTP0R9NUSS0r-81GM7EUlGaJ2_cnGGBdc4zJR41eF-t4a6bMp9cb3M34Imvw_pnzYUk0qWIEhPSUQ6Cop7dh3lJgNM3LhOLBtXQOe_55_ZDgBzGSGHX_8TD_WxGr69c7LjOvE/s320/Microsoft+Excel+Macro-Open+VB+Editor.JPG" alt="" id="BLOGGER_PHOTO_ID_5037342747316735954" border="0" /></a>1) Click visual basic symbol at the toolbar<br />2) Another window open<br />3) Click at Module1<br />4) Immediately you can see the VB code.<br /><br /><br /><br /><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgjZIoZQI1UkbTgaWS30z1pkC-2XMmlN24VcngyaV3aBq6mnuqBRvwwHDLaGQf6HuV_Rr4fqG_Z5b9EJ7MoPa7n7_5edf86kFqUIeJSzcehZuY6Pns4xG9X9r62Rvijz-GNWJl7XtHoVk8/s1600-h/Microsoft+Excel+Macro-Open+VB+Editor2.JPG"><img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgjZIoZQI1UkbTgaWS30z1pkC-2XMmlN24VcngyaV3aBq6mnuqBRvwwHDLaGQf6HuV_Rr4fqG_Z5b9EJ7MoPa7n7_5edf86kFqUIeJSzcehZuY6Pns4xG9X9r62Rvijz-GNWJl7XtHoVk8/s320/Microsoft+Excel+Macro-Open+VB+Editor2.JPG" alt="" id="BLOGGER_PHOTO_ID_5037343387266863074" border="0" /></a><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><span style="font-weight: bold;">2nd Method<br /></span><br />1) Go to Tools>Macro>Macros..<br />2) Pop up menu ask you to choose macro<br />3) Choose your macro<br />4) If you desired to run the macro just click run<br />5) But this time you need to check VB code click edit<br />6) Now immediately you can see the code representing your task<span style="font-weight: bold;"><br /><br /></span>I just wanted you guys to familiarize on how to open the VB code..That All<br />Practice, practice...& practice. O.k<span style="font-weight: bold;"><br /><br />Make sure you are fully understand how to check VB code immediately after record certain macro.<br /><br /></span><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi6edSw-FkngOthiONzvRORIUS_kRfbO93wmjm8M7-W6bKwtVR3o_U3Yl_D9FlsOlX9_aW-_hVlyZ4SNmc2Z6xAooRzEWSG-HAUaML9Z_BaOdwrMCWicEiFvjofhd1CCssIzyO5uUt4l1Y/s1600-h/Microsoft+Excel+Macro-VB+Editor.JPG"><img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi6edSw-FkngOthiONzvRORIUS_kRfbO93wmjm8M7-W6bKwtVR3o_U3Yl_D9FlsOlX9_aW-_hVlyZ4SNmc2Z6xAooRzEWSG-HAUaML9Z_BaOdwrMCWicEiFvjofhd1CCssIzyO5uUt4l1Y/s320/Microsoft+Excel+Macro-VB+Editor.JPG" alt="" id="BLOGGER_PHOTO_ID_5037351002243878898" border="0" /></a><br /><span style="font-weight: bold;"><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /></span><span>This is VB code editor look like.<br /><br /></span>How to edit recorded macro? Pls wait for me..TksUnknownnoreply@blogger.com0tag:blogger.com,1999:blog-716271905909208643.post-62829506125205040732007-03-01T06:48:00.000-08:002007-03-01T07:07:34.259-08:00How to run macro in Microsoft Excel from different workbook?The steps are the same, the only thing you must open your workbook with macro inside and minimize. Now open your new workbook and follow the previous step:<br /><ul><li>Go to >Tools>Macro>Macros</li><li>Choose your Macro<br /></li></ul><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhAS7vjzWkNSJs_kFaRGRMry5j8sfOlENMBlqjLQHNSjwsoKiKJIyZkjeyWXSOiHZe8E20-GTr4F6AhotrpFSy68U_l8m2BS-zwAXoT09l0vqoVzuA7olzTsim15ujMZimrg0Nhu1-2bt4/s1600-h/Microsoft+excel+Tools_Run+Macro4.JPG"><img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhAS7vjzWkNSJs_kFaRGRMry5j8sfOlENMBlqjLQHNSjwsoKiKJIyZkjeyWXSOiHZe8E20-GTr4F6AhotrpFSy68U_l8m2BS-zwAXoT09l0vqoVzuA7olzTsim15ujMZimrg0Nhu1-2bt4/s320/Microsoft+excel+Tools_Run+Macro4.JPG" alt="" id="BLOGGER_PHOTO_ID_5036970248864297186" border="0" /></a><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br />All macro will be listed down if you select Macros in: All open Workbooks<br /><ul><li>Click at your desired macro and click run</li><li>End.</li></ul><span style="font-weight: bold;">Re-cap :</span><br />Now you are willing to :<br /><ol><li>record macro.</li><li>Run macro.</li><li>Run macro from different workbook.</li></ol><br /><p class="MsoNormal">Our Next Chapter will be more interesting because involved code editing:<br /></p><p class="MsoNormal">How to edit recorded macro? Pls wait for me..Tks<br /></p><p class="MsoNormal"><br /></p>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-716271905909208643.post-65163991929414482772007-01-24T06:17:00.000-08:002007-01-25T06:18:39.221-08:00How ro run macro in Microsoft Excel?Before you can run your recorded macro you have to change your security level to medium:<br /><ul><li>Go to > Tools > security<br /><br /><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgSFV85iUYVHCaW7MVmY1sddjp777keHKA3MI2saJ3ZLmblcYrJaCipZ-bCWKVpxa4aV3dzKJJnuKMJANjMcV_hT6-OBdvdCQs8F0sfnPG2ryDwor_BKUFw0ByVSfpCQLObdkN2lf47yXc/s1600-h/Microsoft+excel+Tools_Security+level.JPG"><img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgSFV85iUYVHCaW7MVmY1sddjp777keHKA3MI2saJ3ZLmblcYrJaCipZ-bCWKVpxa4aV3dzKJJnuKMJANjMcV_hT6-OBdvdCQs8F0sfnPG2ryDwor_BKUFw0ByVSfpCQLObdkN2lf47yXc/s320/Microsoft+excel+Tools_Security+level.JPG" alt="" id="BLOGGER_PHOTO_ID_5023601888996691634" border="0" /></a><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /></li><li>Tick medium Security level<br /><br /><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhBBcRI6ydr4J7AnsPCWcoVWzK1tIXXIDVcOWKgoJ7odSGL2VV7W2ZQ8MfiR4uo0DKzOrkvEI41MtABromIUE66xAgMtJnkPZBMUFsaDmDDI5ueov2_CpZEd0XLGC5Q_mny8iFyrGVrK1g/s1600-h/Microsoft+excel+Tools_Security+level2.JPG"><img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhBBcRI6ydr4J7AnsPCWcoVWzK1tIXXIDVcOWKgoJ7odSGL2VV7W2ZQ8MfiR4uo0DKzOrkvEI41MtABromIUE66xAgMtJnkPZBMUFsaDmDDI5ueov2_CpZEd0XLGC5Q_mny8iFyrGVrK1g/s320/Microsoft+excel+Tools_Security+level2.JPG" alt="" id="BLOGGER_PHOTO_ID_5023602017845710530" border="0" /></a><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /></li><li>Click O.K</li><li>End.</li></ul>Now your security level is <span style="font-weight: bold; font-style: italic;">medium</span> and you can run the macro immediately.<br /><p class="MsoNormal">I assume that your previous workbook still open which is inside your sheet 1, range A1:C10 consist of <<b style="">Geniusideas</b>> word.</p> <p class="MsoNormal">Now go to sheet 2 and follow these steps:</p> <ul style="margin-top: 0in;" type="disc"><li class="MsoNormal" style="">Go to > Tools > macro > Macros….<br /><br /><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhnFDCLLNriYAEXKHlx5eKBVI5-xmR7e1OFX_4Bn4qYbdj-BjB4XBULtnE8jk619rJp3SW504lu47QYhwDY0DLOoNtTm3zzGK7RkEbFTN-DP5KqP6zNYupOyr40krtnI5eW1z-xewMfSAI/s1600-h/Microsoft+excel+Tools_Run+Macro.JPG"><img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhnFDCLLNriYAEXKHlx5eKBVI5-xmR7e1OFX_4Bn4qYbdj-BjB4XBULtnE8jk619rJp3SW504lu47QYhwDY0DLOoNtTm3zzGK7RkEbFTN-DP5KqP6zNYupOyr40krtnI5eW1z-xewMfSAI/s320/Microsoft+excel+Tools_Run+Macro.JPG" alt="" id="BLOGGER_PHOTO_ID_5023601154557283970" border="0" /></a><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /></li><li class="MsoNormal" style="">Choose your Macro (If you have many type of macro recorded previously).<br /><br /><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEguoiUfDC-QePXqn34oEWFmqYvERCmknZ3z7qGOlffOmXpLZR3WiDoOkYwLyd-gKD4jDbVg47gJCouuaUuMdlH6GEm_WP7z0H6u5KRaPLRxsyBjOo6hVVFMEW4O9i2vpAdeQONL0pnbcgk/s1600-h/Microsoft+excel+Tools_Run+Macro2.JPG"><img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEguoiUfDC-QePXqn34oEWFmqYvERCmknZ3z7qGOlffOmXpLZR3WiDoOkYwLyd-gKD4jDbVg47gJCouuaUuMdlH6GEm_WP7z0H6u5KRaPLRxsyBjOo6hVVFMEW4O9i2vpAdeQONL0pnbcgk/s320/Microsoft+excel+Tools_Run+Macro2.JPG" alt="" id="BLOGGER_PHOTO_ID_5023601575464079010" border="0" /></a><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /></li><li class="MsoNormal" style="">Click “Run”</li><li class="MsoNormal" style="">End.</li></ul> <p class="MsoNormal">Now you have same result as sheet 1 but this time in sheet 2.<br />Pls try and try again with different step until you are familiar with it.</p><p class="MsoNormal">If you close and save your excel file, every time you open the file the macro must be <span style="font-weight: bold;">enable</span> before you can start using.<br /></p><p class="MsoNormal"><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjN8mYovsGSArFYG8PUZfxgYeU96y-goFjm4CRu-29lAj739Acv48hI2YrL3KSREWyhmt-4y4PxP5oYOGbB5H0wG90-yZKxe5u3RnaAEh597cYH3_BaOL8_I0JaLmr0PwmONLa6hhesXYs/s1600-h/Microsoft+excel+Tools_Run+Macro3.JPG"><img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjN8mYovsGSArFYG8PUZfxgYeU96y-goFjm4CRu-29lAj739Acv48hI2YrL3KSREWyhmt-4y4PxP5oYOGbB5H0wG90-yZKxe5u3RnaAEh597cYH3_BaOL8_I0JaLmr0PwmONLa6hhesXYs/s320/Microsoft+excel+Tools_Run+Macro3.JPG" alt="" id="BLOGGER_PHOTO_ID_5023970646298791634" border="0" /></a></p><br /><p class="MsoNormal"><br /></p><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjN8mYovsGSArFYG8PUZfxgYeU96y-goFjm4CRu-29lAj739Acv48hI2YrL3KSREWyhmt-4y4PxP5oYOGbB5H0wG90-yZKxe5u3RnaAEh597cYH3_BaOL8_I0JaLmr0PwmONLa6hhesXYs/s1600-h/Microsoft+excel+Tools_Run+Macro3.JPG"></a><p class="MsoNormal"><br /></p><p class="MsoNormal"><br /></p><p class="MsoNormal"><br /></p><br /><p class="MsoNormal"><br /></p><p class="MsoNormal"><br /></p><p class="MsoNormal">Our Next Chapter:</p><p class="MsoNormal">How to run macro in Microsoft Excel from different workbook? Pls wait for me..Tks<br /></p><p class="MsoNormal"><br /></p>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-716271905909208643.post-16997679877329081932007-01-22T06:45:00.000-08:002007-01-22T07:23:05.817-08:00How to record macro in Microsoft excel?Now open your Microsoft excel and create new file and normally by default three worksheets is inside.<br /><br /><ul style="margin-top: 0in;" type="disc"><li class="MsoNormal" style="">Go to > Tools > macro > Record new macro…..</li><li class="MsoNormal" style="">Rename your macro.<br />Example : ToCreateMacroForTesting (<b style="">make sure no space</b>)</li><li class="MsoNormal" style=""><!--[if !supportLists]--><span style="font-family:Symbol;"><span style=""><span style=""> </span></span></span><!--[endif]-->Stop button appeared and now you can start recording.<br /></li></ul> <p class="MsoNormal" style="margin-left: 1in; text-indent: -0.75in;"> <b style="">Try these steps:</b><br />1 – Select sheet 1<br />2 – Select range A1 : C10<br />3 – Type<span style=""> </span>< <b style="">GeniusIdeas</b> ><br />4 – Press “Ctrl” button then Follow by “Enter”</p> <ul><li><!--[endif]-->Press Stop Button.</li><li><!--[if !supportLists]--><span style="font-family:Symbol;"><span style=""><span style=""> </span></span></span><!--[endif]-->Select Range A1.</li><li><!--[if !supportLists]--><span style="font-family:Symbol;"><span style=""><span style=""> </span></span></span><!--[endif]-->End.</li></ul> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal"><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi1TKhoRtDW4kCejzTCOM0txmvlg7uXQDw31L-4n9A4EKmjjs1E_5CaOwFuqcBt0_OVrEbcwnIcinqABHzJ2VWr58pgk3S8fi71Fd8YvtGe5C4vN25hCECPuU_dXWiMJTDbGO6hDUiiPf8/s1600-h/Microsoft+excel+Tools_Geniusideas.JPG"><img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi1TKhoRtDW4kCejzTCOM0txmvlg7uXQDw31L-4n9A4EKmjjs1E_5CaOwFuqcBt0_OVrEbcwnIcinqABHzJ2VWr58pgk3S8fi71Fd8YvtGe5C4vN25hCECPuU_dXWiMJTDbGO6hDUiiPf8/s320/Microsoft+excel+Tools_Geniusideas.JPG" alt="" id="BLOGGER_PHOTO_ID_5022871929239965298" border="0" /></a></p><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br />Now your sheet 1, range A1:C10 consist of <<b style="">Geniusideas</b>> words,<br />Meaning you already have macro recorded inside your excel file that can be use anytime without repeating the above process but we can get same result.<br /><br /><p style="font-weight: bold; color: rgb(255, 102, 102);" class="MsoNormal">To Start Recording :</p><p class="MsoNormal">1) Go to Tools >Macro >Record New Macro<br /></p><p class="MsoNormal"><o:p></o:p><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgiNf4BfKZrqtyV5FzXhKzGAMirV4YR4I-9F-LQCsZdpXyzh5TSDadRVhOnmpCmRHQ3dWglxU6uwJwG0r2JnQFaFdZyZTpfoVjrISlIDYaYM5-ps2IJ9xHHalICzzJXPKzjyy3-EVgbP84/s1600-h/Microsoft+excel+Tools_Record+New+Macro.JPG"><img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgiNf4BfKZrqtyV5FzXhKzGAMirV4YR4I-9F-LQCsZdpXyzh5TSDadRVhOnmpCmRHQ3dWglxU6uwJwG0r2JnQFaFdZyZTpfoVjrISlIDYaYM5-ps2IJ9xHHalICzzJXPKzjyy3-EVgbP84/s320/Microsoft+excel+Tools_Record+New+Macro.JPG" alt="" id="BLOGGER_PHOTO_ID_5022867780301557298" border="0" /></a><br /></p><p class="MsoNormal"><br /></p><p class="MsoNormal"><br /></p><p class="MsoNormal"><br /></p><p class="MsoNormal"><br /></p> <p class="MsoNormal"><br /></p><br /><br /><br /><p style="font-weight: bold; color: rgb(255, 102, 102);" class="MsoNormal"><br /></p><p style="font-weight: bold; color: rgb(255, 102, 102);" class="MsoNormal">Rename Your Macro :</p><p class="MsoNormal">1) By default it will appear macro1,2,3...follow sequence but it is good for you differenciate inbetween one another.(Example : Tosortfortesting) No space O.K...<br /></p><p class="MsoNormal"><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEheYDDOUH1Io9rLgcBhwB3f-9ZAWOM5ARiHyvLnVKwLRzXLWqe0kVL4O_GafUIqUXpIEnn1gOu3vajTyfURCM89doduEK2kQcA9ylSlVNhR8onyf9NEMrFPppfPQxf4DaDpXNaTH5bnTU8/s1600-h/Microsoft+excel+Tools_Name+Yr+macro.JPG"><img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEheYDDOUH1Io9rLgcBhwB3f-9ZAWOM5ARiHyvLnVKwLRzXLWqe0kVL4O_GafUIqUXpIEnn1gOu3vajTyfURCM89doduEK2kQcA9ylSlVNhR8onyf9NEMrFPppfPQxf4DaDpXNaTH5bnTU8/s320/Microsoft+excel+Tools_Name+Yr+macro.JPG" alt="" id="BLOGGER_PHOTO_ID_5022868209798286914" border="0" /></a></p> <p class="MsoNormal"><br /></p> <p class="MsoNormal"><br /></p><p class="MsoNormal"><br /></p><p class="MsoNormal"><br /></p><br /><br /><br /><br /><span style="font-weight: bold; color: rgb(255, 102, 102);">To Stop Recording :</span><br /><br />1) Press STOP Button.<a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiI3bBdgdFFbENSA2ygP4ZBS_bcJWoWEpNG4_C3NyUvieW3ynvkvnttdT8PNnlJ2bZsmXiOfKJ0yU8QQsuu-mnyHlGjqiwtcgHo5QWHDQ3w3RlsEQLA4SISEwsqTK0px3dQh0Db0tOE3YY/s1600-h/Microsoft+excel+Tools_Stop+Button.JPG"><img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiI3bBdgdFFbENSA2ygP4ZBS_bcJWoWEpNG4_C3NyUvieW3ynvkvnttdT8PNnlJ2bZsmXiOfKJ0yU8QQsuu-mnyHlGjqiwtcgHo5QWHDQ3w3RlsEQLA4SISEwsqTK0px3dQh0Db0tOE3YY/s320/Microsoft+excel+Tools_Stop+Button.JPG" alt="" id="BLOGGER_PHOTO_ID_5022868750964166226" border="0" /></a><p class="MsoNormal"><br /></p><br /><br /><span style="font-weight: bold;"><br />OR</span><br />2) Go to Tools >Macro >Stop Recording<br /><p class="MsoNormal"><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjrgkMeQ6e7R7u4of-mkZ-7MiSEFkNAjxA-lWpecHnR4FT1Cee1Rcb_nWgyzMrIkZF9amWaViNUajbx0qVNAaCEgowtYlyMuA6ysDfWcRi7bdWhPARVMpFVudt59MluMugXqTT-mezOMAo/s1600-h/Microsoft+excel+Tools_Stop+Recording.JPG"><img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjrgkMeQ6e7R7u4of-mkZ-7MiSEFkNAjxA-lWpecHnR4FT1Cee1Rcb_nWgyzMrIkZF9amWaViNUajbx0qVNAaCEgowtYlyMuA6ysDfWcRi7bdWhPARVMpFVudt59MluMugXqTT-mezOMAo/s320/Microsoft+excel+Tools_Stop+Recording.JPG" alt="" id="BLOGGER_PHOTO_ID_5022869064496778850" border="0" /></a></p> <p class="MsoNormal"><br /></p><p class="MsoNormal"><br /></p> <p class="MsoNormal"><br /></p> <p class="MsoNormal"><br /></p><p class="MsoNormal"><br /></p><br /><br /><br /><br /><p class="MsoNormal"><br /></p><p class="MsoNormal">Our Next Chapter will cover:<br />How to run macro in Microsoft excel? Pls wait for me..Tks<br /></p>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-716271905909208643.post-33236939342085716632007-01-22T02:57:00.000-08:002007-01-22T03:23:03.671-08:00How to create macro in Microsoft excel ?We can create macro in microsoft excel in two ways :<br /><ul><li>Write your own script using <span style="font-weight: bold;">visual basic language</span>.</li><li>Record your task step by step.<br /></li></ul>The easy way is to record the macro step by step and do the editing according to your requirement. Meaning to be more flexible and powerful you have to understand visual basic language(no need to be master) just to do editing after each recording process. You don't have to worry about the complexity of the language because you can learn along the recording process itself.<br /><span style="font-weight: bold; font-style: italic;">Example : when you do the recording immediately after the process you can analyze and change the script.<br /></span><span><br />Our Next topic :<br /><br />How to record Macro in microsoft excel? Pls be patience and wait for me..Tks</span><span style="font-weight: bold; font-style: italic;"><br /></span>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-716271905909208643.post-24694031195416090052007-01-17T06:41:00.000-08:002007-01-17T07:25:29.910-08:00What Microsoft Excel Macro can do for you ?I love so much about macro eventhough my knowledge about Visual Basic programming language was not very good and no formal training. Most of the skill that I learned are from Microsoft Excel help, internet, books and my Colleague Mr <span style="font-style: italic; font-weight: bold;">Raymund Lawrence Danker</span>.<br /><br />At my workplace I am handling a lot of data's and I found my subordinate having difficulties to do the sorting, segregating and arranging those data, some more thier skill and knowledge about excel totally zero at that time, since then I decided to learn more about Microsoft Excel macro. Now I am using the macro for :<br /><ul><li>To sort the unwanted data after being download from oracle system</li><li>To arrange the data accordingly</li><li>To format the data meet our requirement</li><li>To arrange multiple sheets of data into a single sheet</li><li>To rearrange data from one format to another format</li><li>To compare data with multiple sheet</li><li>To format the data for standard printing size..More and more<br /></li></ul>All the above task can be done with a single click and all my subordinate and Colleague happy about it because they don't have to do it in hard way.<br />Their productivity now is up to more than 1000% , I think..<br />Now you can imagine What microsoft excel macro can do to you?<br />Next topic:<br /><br />1) How to create macro in excel ? Pls be patience..OK<br />wait for me..Unknownnoreply@blogger.com1tag:blogger.com,1999:blog-716271905909208643.post-53522791582040727842007-01-17T06:00:00.000-08:002007-03-02T07:40:27.485-08:00What is Macro in Microsoft Excel ?If you are Microsoft excel user for sure you are interested in this topic because by using Macro you can :<br /><ul><li>Perform a task repeatedly(You can perform same task again and again with single click).<br /></li><li>The task perform automatically(You can sit down and see your task being perform).</li></ul><span style="font-weight: bold;">Very interesting...?</span><br /><br /><span style="font-weight: bold;">Now take a look at the defination :</span><br />A macro is a series of commands and functions that are stored in a Microsoft Visual Basic module and can be run whenever you need to perform the task.<br /><span style="font-weight: bold;">For example :</span><br />If you often enter long text strings in cells, you can create a macro to format those cells so that the text wraps automatically.<br /><br /><span style="font-style: italic;">Note:</span><br /><span style="font-style: italic; font-weight: bold;">a) function:</span><br /><span style="font-style: italic;">A prewritten formula that takes a value or values, performs an operation, and returns a value or values. Use functions to simplify and shorten formulas on a worksheet, especially those that perform lengthy or complex calculations.</span><br /><br /><span style="font-style: italic;"><span style="font-weight: bold;">b) module:</span> </span><br /><span style="font-style: italic;">A collection of declarations, statements, and procedures stored together as one named unit. There are two types of modules: standard modules and class modules.<br /><br />c) </span><span style="font-weight: bold; font-style: italic;">Visual Basic :<br /></span><b><span style=""></span></b><span style="font-style: italic;">High level programming language evolved from the earlier DOS version called BASIC. BASIC means </span><span style="font-weight: bold; font-style: italic;">B</span><span style="font-style: italic;">eginners' </span><span style="font-weight: bold; font-style: italic;">A</span><span style="font-style: italic;">ll-purpose </span><span style="font-weight: bold; font-style: italic;">S</span><span style="font-style: italic;">ymbolic </span><span style="font-weight: bold; font-style: italic;">I</span><span style="font-style: italic;">nstruction </span><span style="font-weight: bold; font-style: italic;">C</span><span style="font-style: italic;">ode. It is a fairly easy programming language to learn. The codes look a bit like English Language. Different software companies produced different version of BASIC, such as Microsoft QBASIC, QUICKBASIC, GWBASIC ,IBM BASICA and so on.<br /><br /></span>If you do not know anything about Visual Basic, don't worry about that because in Microsoft excel we don't have to write, we can record the step with with formula and trick.<br />Let Move On....<span style="font-style: italic;"><br /></span><span style="font-style: italic;"><br /><br /></span>Unknownnoreply@blogger.com2