98.7% Of all customers recommend us, we're so confident about our results we publish all reviews and stats
View Live Stats View ReviewsPrevious article Next article VBA articles
VBA With Excel - Making The Working Day That Little Bit Easier
Mon 19th July 2010
With a serendipity to bring a smile to Samantha's face, the solution is already here. However, it's a solution that many choose not to take up, because it involves a little programming. That one word, programming, carries such dense and long-established connotations of incomprehensible data languages, deep technical expertise, and perhaps the old image of the computer boffin typing away in a darkened room. Indeed, Samantha hasn't really considered the programming option; she's not a programmer, she hasn't time to learn complicated coding languages, so how could it help her?
Surprisingly easily, as it happens. If we clear away the fog from around the idea of programming, we find Visual Basic for Applications (VBA), and the means to transform how Samantha uses Excel, with a programming language that is both simple and, importantly, written entirely in English. VBA allows Samantha to communicate directly with Excel, rather than following predefined choices and consequently she can tell the software to do just what she needs it to do - and that can mean reducing those endless repetitions to a single keystroke.
One of Samantha's nuisance tasks is to pick out certain aspects of a dataset and produce a report: the company she works for installs and maintains air conditioning and heating for large office complexes and engineers are sent all over the country to many different clients. Management need these reports to keep an eye on incomes and expenditures for a range of issues that the business deal with, breaking down the figures by factors such as the work done for each client, the cost of working with certain types of installation, the income raised and time taken by each engineer or the frequency of return trips to the same location. Every time, she selects the necessary fields one by one, before creating a report with Excel's range of analytical tools. Each stage of this process has a corresponding VBA command - so programming this sequence of events (called a macro), is as simple as putting the necessary commands in order within Excel's VBA editor. Once the macro is compiled, Samantha can associate it with whatever keyboard shortcut she chooses, and the job is done. The same process can apply to any sequence that Samantha runs through, such as creating new datasheets with the standard fields for a new client, or changing the formatting of a number of cells.
All Samantha needs to learn, then, is the simple syntax of objects, (such as the worksheet or a chart), properties (a quality of the object, such as formatting) and methods (actions that can be performed - such as creating the reports that Samantha requires). The activities that Samantha wants carried out can all be defined as just changing the property or method of an object - or, if you like, as just changing what something is, or telling it what to do. A short training course will certainly help her become comfortable with using VBA whenever repetitive Excel tasks occur. Surely, Samantha never imagined that programming could put a smile back on her face.
Author is a freelance copywriter. For more information on access visual basic, please visit https://www.stl-training.co.uk
Original article appears here:
https://www.stl-training.co.uk/article-1018-vba-with-excel-making-working-day-that-little-bit-easier.html
London's widest choice in
dates, venues, and prices
Public Schedule:
On-site / Closed company:
TestimonialsTottenham Hotspur Football & Athletic Co Ltd
Corporate Analyst Tom Hurworth Excel Intermediate I think its a good course which is taught at a good pace. My only suggestion would be is to include more information in the workbook. For example there were some things we were learning that was not in the workbook. Bain & Company
Marketing Coordinator Katie Morley Excel Intermediate Great session from Jens. I learned a lot and Jens was super helpful and a great teacher. Thank you very much! NBC Universal
Box Office Analyst Anil Kumar Excel Forecasting and Data Analysis You are doing things excellently so far. My only comment would be if possible to just rename metrics in your worksheets/case studies relative to the company. For example if we were using film titles in stead of shop products, as a film company, I think we would find it easier to grasp certain things and then how to apply it to our work outside of the case study files. |
PUBLICATION GUIDELINES