Paper Details  
 
   

Has Bibliography
4 Pages
978 Words

 
   
   
    Filter Topics  
 
     
   
 

Using Macros to Get the Most Out of Excel

oke is recorded. The recorded macro is automatically converted into VBA. Even the revisions are recorded, as evidenced below. Notice here that the “if” command was required. This nullified the prior formula, however the code is still recorded.After the macro is completed the work done on the spreadsheet can be deleted and the macro applied to the raw data. This is done by Tools, Macro, Play Macro.A screen will appear as follows, and the Average Growth macro is selected. Press Run and the commands are applied to the spreadsheet. The results are the appearance of a new data column “J’ with average growth figures expressed as a percentage. Whilst the record macro function is easy to use, it does have limitations. Most recorded macros are designed to perform a specific task. Most designers are also the users and being under time constraints take shortcuts. This means that the macros can become so specific they will not be useful in even a slightly different situation. In the example performed above, what happens in the next year where there are six years of trading history? The recorded macro is rendered useless. Writing a macro in VBA can provide a tailored outcome no matter what the data range as the instruction can capture the data range until “blank”, rather than be limited to a prerecorded cell range. Attempts to change prerecorded macros can become incredibly frustrating.There are many commands that you need to learn to program VBA, one benefit of the record macro facility is that it can become a ready reference for the 300 VBA instructions.In all the VBA component can allow for a myriad of functions that recording macros cannot.There are plenty of texts and courses on writing VBA code. Or for free you can surf the net at www.add-ins.com/tricks.htm. or www.excelvba.com/?source=goto www.beyondtechnology.com/tips.shtml .In short, be more professional by being more accurate, timely and prov...

< Prev Page 3 of 4 Next >

    More on Using Macros to Get the Most Out of Excel...

    Loading...
 
Copyright © 1999 - 2025 CollegeTermPapers.com. All Rights Reserved. DMCA