Discover millions of ebooks, audiobooks, and so much more with a free trial

Only $11.99/month after trial. Cancel anytime.

Excel VBA: A Beginners' Guide
Excel VBA: A Beginners' Guide
Excel VBA: A Beginners' Guide
Ebook129 pages57 minutes

Excel VBA: A Beginners' Guide

Rating: 4 out of 5 stars

4/5

()

Read preview

About this ebook

Excel VBA is very helpful for you to do your routine task, create your own function, reduce the manual effort and increase your productivity. With the help of VBA you can customize and manipulate data present in the excel sheet as you want. This book will be very helpful and comes in handy for the beginners who don’t have any programming knowledge. The ultimate aim of this book is to turns the reader to think like an Experienced VBA programmer.
All the topics in this book are elaborated in simple manner for easy understanding. Each and every topic in this book is covered with detailed illustrations followed by output.
What you will learn in this book

1) Introduction to Excel VBA-

2) Declaring Variables

3) Working with Ranges

4) If...Else Statements

5) Select Case Statements

6) For Next Statements

7) Do Loops

8) Operators in VBA

9) Understanding the VB Editor

10) Function Procedures

11) MsgBox and InputBox Functions

12) String Functions

13) Information Functions

14) Working with Internet Explorer

LanguageEnglish
PublisherRajan
Release dateOct 5, 2015
ISBN9781310799624
Excel VBA: A Beginners' Guide
Author

Rajan

Rajan has been working in Corporate firm and has rich knowledge in scripting and automation tools like VBA, selenium and AutoIT. He has keen interest in developing and programming areas. He loves to automate task which is repetitive and time consuming.His hobbies are blogging, writing and reading books. He is passionate in programming languages and develop useful things out of it. He always love to share known information and knowledge with others.

Read more from Rajan

Related authors

Related to Excel VBA

Related ebooks

Enterprise Applications For You

View More

Related articles

Reviews for Excel VBA

Rating: 4 out of 5 stars
4/5

12 ratings2 reviews

What did you think?

Tap to rate

Review must be at least 10 words

  • Rating: 2 out of 5 stars
    2/5
    It's a weak book with very basic info. Also it does give basic understanding of writing VBA scripts, it gives almost no examples of how to use it in real work...
    And language is awful :( I understand English is not author's native language. But it's a published book! Someone had to read it out and correct grammar mistakes.
  • Rating: 5 out of 5 stars
    5/5
    wonderful text, cant get enough! wish there were more text like this online.

Book preview

Excel VBA - Rajan

EXCEL VBA:

A BEGINNERS’ GUIDE

RAJAN

Contents at a Glance

1)Introduction to Excel VBA

2)Declaring Variables

3)Working with Ranges

4)If…Else Statements

5)Select Case Statements

6)For Next Statements

7)Do Loops

8)Operators in VBA

9)Understanding the VB Editor

10)Function Procedures

11)MsgBox and InputBox Functions

12)String Functions

13)Information Functions

14)Working with Internet Explorer

Acknowledgement

I would like to express my gratitude to my friends and family who made their contribution to the successful publication of this book.

My special thanks to my family, friends and colleagues. I would like to thank my readers for their constant support and encouragement.

Disclaimer

This book is an independent publication and it does not affiliate or sponsored by Microsoft Corporation.

Dear My Friend,

If you are not satisfied with this eBook, could you please return the eBook for a refund within seven days of the date of purchase rather than post a review?

If you found any errors in this book, could you please send an email to me instead of posting a review?

erajan24@gmail.com

I will appreciate your email. Thank you very much!

Sincerely

Rajan

VBA abbreviation is Visual Basic for Applications. It is not a completely object oriented language instead we can say it as event driven programming language because to run your script you need a host. Microsoft Office comes with inbuilt Visual basic Editor to write your code easily. Using the power of VBA you can easily able to access the COM objects of all Microsoft office. For instance, you can open new word document using excel VBA, you can send the all details of your excel sheet to word document, you can control Microsoft outlook using VBA.

But among the Microsoft programs, VBA for Excel is most popular used application because almost all kinds of works are done in Excel when compared to other programs such as Outlook, Power point, Access. So, if you know VBA for excel then you can easily do almost all your stuff without any hassle.

Microsoft Excel by default comes with thousands of inbuilt functions. Even though it has many functions, it does not satisfy all the users’ requirement. In order to resolve this problem, Microsoft allows user to create their own functions according to their requirement with the help of VBA.

For example, if you want to convert the degree to Celsius or Fahrenheit using Excel built in functions is complex, but it is relatively easy to solve this problem by creating your own function using VBA.

Visual Basic for Application allow user to create customized User Defined Functions, automating the manual process ,controlling the windows AP.VBA is somewhat closely related to Visual basic but it need  a host application to run your code. You cannot able to create a standalone application using VBA.

VBA is built into most of the Microsoft Office Applications to allow the user to meet their requirements. It interacts with other application using the OLE automation technology. Sometime VBA can also be called as Macro.

To start writing your script you need to have the Developer tab but by default Developer tab is hidden by Microsoft. You need to activate it. Let us see how to activate the Developer tab. The screenshots attached in the book is Microsoft Excel 2007 the appearance may look different in other versions but the code will be compatible with all Excel versions.

Click on the Excel Office button and choose the Excel options then the dialog box will appear as show in the Fig 1.1.Mark the check box Show Developer tab in the Ribbon and click the ok button then you can able to see the Developer tab added to your Excel as shown in the Fig 1.2

Fig 1.1 Adding the Developer tab to Excel

Enjoying the preview?
Page 1 of 1