Excel VBA Courses Wean Users Off The Macro Recorder

Most users' first exposure to Excel Visual Basic for Applications (VBA) involves recording a macro. As the user carries out a series of steps (for example opening a workbook going to a particular worksheet, copying some data, and so on) Excel faithfully records each step by generating the necessary Visual Basic code. Each time the user plays back the macro, these same steps are performed exactly as they were recorded. Recording macros is excellent for really simple operations such as producing a simple report. However, there are definite limitations to this approach. Firstly, because Excel plays back the steps just as they were originally performed by the user, recorded macros are notoriously slow to play back. Secondly, recorded macros will only run correctly under the conditions in which they were first recorded. For example, if a certain worksheet needs to be active at a given point and it is not active when the macro is run, there will be an error and the macro will stop running. This means, effectively, that recorded macros can only really be utilised by the person who records them.

They cannot be given out to one's work colleagues. One of the first things we do on the Excel VBA training courses that we run at our London training centre is to wean users off the recorder. We give them a good grasp of the Excel object model, a way of programmatically representing each of the elements within the Excel environment such as workbooks, worksheets and cells. True, there is a bit of a steep learning curve for those users who have done little or no programming. This is one reason why we run a five day intensive Excel VBA training course for new users. We find that it gives everyone a chance to gain confidence and familiarity with this challenging environment. Once we have put the recorder on a back-burner, we teach delegates the syntax and structure of VBA. We show them how to use variables to store both data and references to Excel objects (such as workbooks), how to create logical and iterative coding structures and how to allow the person running your macro to make choices. Getting some training on Excel VBA is always worth the effort. It can take the productivity of an Excel user to a new level very rapidly. Monthly procedures and reports which used to take long hours can suddenly be accomplished with astounding ease and lightening speed. Getting trained on Excel VBA is the only real way of losing one's initial reliance on the macro recorder. However, the recorder should not be disregarded altogether. For example, if you find yourself working with an Excel object or procedure you find difficult to code, recording a few steps then examining code Excel generates is an excellent way to learn new VBA syntax.
 

Keywords from this article to read more on!
Simple Ways To Boost Your Metabolism
It has been found that certain chemical compounds in some foods and beverages are able to stimulate your metabolism causing you to burn more body fat than usual. Below are just a few easy things you c...
IT Outsourcing Web Development Services India
India - Best outsourcing environment for Website design and Website development services. Being the being outsourcing environment, India has shown its fantastic growth rate in providing world class...
Households Dumping Their Home Phones
According to the National Health Interview Survey, conducted by the U.S. Center for Disease Control, about 3 in 10 households either only use mobile phones or rarely take calls on their landlines....
Why People Give Referrals
New studies demonstrate the benefits of referral marketing. In his book The New Art and Science of Referral Marketing , Scott Degraffenreid explains how the science of social network analysis has bee...
Home Business Technology Internet Travel Self Help Health Games More Search