Introduction to VBA: In this topic we will try to understand basics in Excel VBA. What are the different things we can do with VBA? How its help us.
Introduction to VBA:
VBA is a programming language for MS Office Application, which stands for Visual Basic for Applications; it allows you to automate the task which you are doing manually and repeatedly. Most of the times, we do the same kind of tasks daily in our day to day work, you can automate it using VBA.
VBA is a common language for all MS Office Tools (Excel, Word, PowerPoint,Outlook,Access), if you learn Excel VBA, you can able to automate any MS Office Tool , the only change is object model.
Why should I learn VBA? What things can we do using VBA?
We can do many things using VBA:
- … we can automate the repeated tasks
- … we can automate hourly, daily,weekly,monthly or yearly generated reports
- … we can prepare rich and interactive Excel Dashboards
- … we can automate PowerPoint presentations
- … we can automate Word documentation
- … we can connect to various database to get the data and prepare the reports
- … want can build the tools
- … we can interact with other applications, including MS Office Tools
- … we can automate the other applications like SAS, MINI TAB, etc …
- … and we can do many more things using VBA based on your data and requirement
For example …
- » We copy some data from different sources and paste it in a worksheet and doing some manipulations and then we will format it and send it to the client
- » We may extract some data from a database to an Excel sheet, and then we will clean the data and create some reports and send through email
Most of the times the input data may vary, but the remaining steps may be same and we perform the same task on the data and send the output to the clients.
Many of us do the similar kind of work daily; there may be some change in the data but not the structure of the data, process steps which we execute to deliver the output.
VBA helps to who…
- … do not like doing the same things manually & repeatedly
- … wants to save the process time by automating the tasks
- … wants to generate the interactive reports
- … want to develop the tools for the team
- … want to make a difference
- … want to save project execution time and spend the time on exploring the new things or technologies
- … want to automate any Office Tool and Other Applications like SAS
We can automate the tasks using VBA in 2 different ways:
- 1. By Recording a Macro: You can record a macro for simple tasks, using Record Macro utilities provided in Excel, you do not need any programming skills to record a macro.
- 2. By VBA Programming: You can write VBA programming in VBE (Visual Basic Environment) Editor to automate any task. It requires VBA programming skills and you can automate simple to complex level tasks
In this basic tutorials, we focus on the first method, Recording Macro for automation.
You can learn VBA Programming and Advanced Techniques to do more using VBA.
This looks like a great resource! Question: Do you have a link or something to access the tutorial? I am confused on getting either a video or step by step directions for the DBA section. Thanks
Hi PN Rao,
I am planning to pursue career in analytics. In this regard i would require your guidance. Request you to share your email id.
Hi Raj,
Please check this post where I have explained career in analytics.
http://analysistabs.com/data-analysis/introduction-sas/
You can contact me at info@analysistabs.com.
Thanks,
PNRao
Hi PN Rao,
I am working in infosys bpo and planning to pursue my career in Analytics. I have experience as Quality analyst in Mortgage and also in Technical Project Management but i want to go in Pure analytics.
so please help me in this.
Hi PN Rao,
Good day to you.
I have started learning VBA for MS office and kindly let me know where do i start it from. Because i would like to know the flow of the approach>
Thank you.
Regards,
Ravi
Hi PN Rao,
Thanks for your brief intro on VBA.
Please, I will like you to enlighten us more on how to go about creating a VBA macro for beginners like us, because i have tried getting started with your brief intro but couldn’t continue any longer because I got lost along the line. thanks.
quick reply please.
Sure we will add step by step tutorial for beginners. Please try our 15 Examples for beginners:
https://analysistabs.com/excel-vba/macros-beginners/
Thanks!