Microsoft Office TrainingThe UK's Number 1 for Microsoft Office Training Sitemap add this page to your favourites/bookmarksBookmark page
 
view a printable version of this pagePrintable version
Plus One Google
Customer: Sign in
Delegate: Sign in
Trainer: Log in

articleVBA - Not Just For Programmers

VBA carries with it a sense of clique - it's for programmers only, not the average Office user who is well versed in the applications, but would never think of manipulating them to suit your taste. No, it's not coding (or rewriting code) as much as you may think and it's not risking making a programme unworkable. VBA is, in fact, a way to make your life easier - and who wouldn't want that?

Another myth about VBA is that you have to write a program or application from scratch. This isn't true and a great relief to those of you who are thinking of learning VBA but who find the prospect of a blank template to be filled with beautifully coded algorithms utterly terrifying. Most of us have heard of ActiveX Controls - if only to authorise our browsers to load them - but they are a typical component of VBA. You can simply edit existing code or use an open source 'library' of code, posted by other VBA users and have a play around with it. "Control" is the keyword here - they are the basic components of VBA. They're simple to learn, even for a non-coder and are easy to manipulate.

Let's say you're working in Word. Clicking the Developer tab (followed by Designs Mode), will give you some controls you can work with. Select on of them, and you're presented with the basic VBA editor, complete with some basic coding already (a bit like a web editing program inserting the starting tags in html). Working with VBA as a starting point, the best option to learn more is to start manipulating these controls.

To add a simple control, the UserForm function should be used within your document, then you can place controls on it. Forms hold the code in and are the essential element of working with VBA. You can also edit the form itself to get slightly different results. Coming from a non-programming perspective, you'll soon realise that VBA needn't be scary or technical. Forms, after all, are something most of us are already well-versed in on the web. Text boxes (usually created in Word, or again, in websites) are another way of adding a control to VBA.

The similarities between basic forms and the web continues with the necessity of the command button (almost like a 'submit' on a form) that executes the elements of VBA you've been working with. However, you do not always have to 'command' VBA to start its assigned task, it can be event driven - when a certain number of parameters are in place (let's say you finish processing your company payroll at the end of a month) - a simple VBA code will "recognise" you just did April, the end of the tax year, and will automatically 'know' to do the end-of-year totals. Most people know simple string arguments to create an event-driven piece of code (the old if x = y then.... School of thought). VBA is, thankfully, much smarter and more flexible than this.

Depending on what version of Office you have, (2007 is the one with the most VBA features so far, understandably), you need less and less programming know-how, as the features of Office have got more advanced with age. With the advent of Office 2010 on the horizon, why not have a go now?

Author is a freelance copywriter. For more information on access vba books, please visit http://www.microsofttraining.net


Original article appears here:
http://www.microsofttraining.net/article-692-vba-not-just-programmers.html


Back to article list

Distribution notes

PUBLICATION GUIDELINES

  • You have permission to publish this article for free providing the "About the Author" box is included in its entirety.
  • Do not post/reprint this article in any site or publication that contains hate, violence, porn, warez, or supports illegal activity.
  • Do not use this article in violation of the US CAN-SPAM Act. If sent by email, this article must be delivered to opt-in subscribers only.
  • If you publish this article in a format that supports linking, please ensure that all URLs and email addresses are active links, without the rel='nofollow' tag.
  • Software Training London Ltd. owns this article. Please respect the author's copyright and above publication guidelines.
  • If you do not agree to these terms, please do not use this article.

Rate this page:
2.8/5 (129 votes cast)
Accredited Training Provider: Institute of IT Training Institute of Leadership and Management - Certified Courses
Microsoft Certified Partner
Security Seal verified by visa, mastercard securecard

Mini sitemap. These are the main areas of our web site. Full sitemap.

Management training

Professional Skills courses
Project Management Course London
Project Management Courses London
Project Management Training London
Project Management Training
Project Seminar
Project Seminars
Time Management Course London
Time Management London
Time Management Courses London
Time Management Training London
Introduction to Finance course
Assertiveness Skills course
Effective Communications Skills training
Presentation Skills London

Training Formats

Public scheduled courses
On-site training
Closed company courses

Consultancy
Application Development

Blogs

Excel Training
MS Project Training
Microsoft Training Blog

Version differences

Office 2010 vs 2007
MS Project version differences

Training Information

London Computer Training
Computer Training London
Docklands Training Courses
Docklands Training London

Training venues London
Client list
FAQ
Pricing and availability
Course details / Syllabus

Training Articles
Training Information

Microsoft training

Microsoft Office training
& IT Applications

Microsoft Project training
Microsoft Outlook training
Microsoft Powerpoint training
Microsoft Word training
MS Project courses
MS Project training
Outlook courses
PowerPoint courses
PowerPoint training
VBA courses
Word courses
Microsoft.training
(more...)

Excel Training

Excel courses
Excel Training Courses Medway
Autonumber in Excel
Microsoft Excel training
Basic Excel Courses
Basic Excel Course
Basic Excel Training

Interested in MS Access training?

Access courses
Microsoft Access training
Microsoft access courses
Microsoft training access course
Microsoft+access+training
Access courses in london

Training provider

Training providers
IT training companies
IT training providers
Management Training providers
Management Training provider

Event history, feedback results
Events in 2012 · 2011 · 2010 · More

See also

Crystal Reports training