VBA Concepts

Home/Tag:VBA Concepts

VBA concepts help you to understand the programming techniques of VBA to master in macro programming language for MS Office Tools.

VBA Programming

VBA programming for beginners and advanced users will help you to learn vba programming language and concepts. Our objective of this topic is to provide complete programming reference to write VBA Programs. VBA Programming Learning Objective By learning VBA Programming, you will be able to write VBA programs to automate any task in Micro soft office

By |May 1st, 2014|VBA|14 Comments

Introduction to Collections in Excel VBA

Collection is an object contains group of objects having similar characteristics (with same properties and methods). For example,if you want to loop through all worksheets in a workbook, you can refer worksheets collection of the workbook and do whatever you want to do with that particular worksheet.

In this topic:
  • Introduction to Collections?
  • Collections in Excel VBA
  • Examples Macro File On Collections

By |August 25th, 2013|Excel VBA|1 Comment

ListBox in Excel VBA – Adding, Clearing, Multiple Selection Examples

ListBox VBA Excel Example Macros Codes for Adding new Items,Moving all Items, selected Items from ListBox to another ListBox,clearing,Multi selection. VBA ListBox in Excel is one of finest control in the Excel. You can show the list of items in the listbox and user can select any item and do different operations. In this tutorial,

By |August 24th, 2013|Excel VBA|21 Comments

ADO in Excel VBA – Connecting to database using SQL

ADO Stands for ActiveX Data Objects, is Microsoft’s Client-Server technology to access the data between Client and Server. ADO can’t access the data source directly, it will take help of OLE DB Provider to communicate with the data source. Most of the times OLE DB providers are specific to a particular Data Source Type. However, we have an OLE DB provider for ODBC, it is a general purpose provider with help of this ADO can access any Data source which can understand ODBC.

In this topic:
  • What is ADO?
  • What is Database?
  • What is SQL?
  • Practical Learning: Using ADO and SQL with VBA
  • Example File

Events in Excel VBA

Event programming is the most useful tool which helps to monitor specific user actions within Excel. For example, if the user Opening a Workbook, Selects a Worksheet, enters data into a Cell, or saves a Workbook, these actions are all Excel Events.

In this topic:
  • What Are Events?
  • What Are The Different Types of Events?
  • Practical Learning: Workbook_Open Event
  • Example File: Workbook Events, Worksheet Events and Form Events

By |August 11th, 2013|Excel VBA|6 Comments

Interacting with Other Applications using VBA

We can interact with the other applications using VBA - with the MS Office Applications like Word, PowerPoint,Outlook,etc... and other applications like Internet Explorer, SAS,etc.

In this Section:
  • Introduction?
  • How to interact with MS Word? - Late Binding
  • How to interact with MS Word? - Early Binding
  • How to interact with PowerPoint? - Early Binding
  • How to interact with Outlook? - Late Binding
  • Example File

VBA Security in Excel

It is important to understand the macro security if you are dealing with the Macro Enabled Files. It helps to protect your data from the malicious programs and helps to know how to run the macros when its required.

In this Section:
  • Understanding VBA Security
  • What are the different Levels of the Security in VBA?
  • How to Enable or Disable the Macros?
  • How To Protect VBA Code?

VBA Objects Properties and Methods in Excel

Most of the programming languages today are Object Based Or Object Oriented Programming Languages. Although Excel VBA is not a truly object oriented programming language, it does deal with objects.

In this topic:
  • What are Objects?
  • What are Properties?
  • What are Methods?
  • What is Object Browser?

Forms and Controls in Excel VBA

Any Windows Application is equipped with set of objects called windows controls. The Main control is called a Form, it is the primary window contains different types of controls which allow user to interact with the computer. The following is a simple form to calculate square value of a given number.

In This Section:
  • What Are UserForms?
  • What Are ActiveX Controls?
  • What Are The Different UserForm Controls & Use?
  • Practical Learning: Developing A Simple UserForm
  • Example File

Passing Arguments in Excel VBA

We write the procedures to perform certain tasks and some times we may required to write another procedure with small variations. In this situation we can take advantage of the Passing Arguments.

In this Section:
  • What are By Value (ByVal) and By Reference (ByRef) Passing Arguments?
  • Writing a procedure or a function with Arguments
  • How to call a function or a procedure?
  • Example macro file to explain passing arguments

Arrays in Excel VBA

When we work with one item we required to use one variable, if you want work with more than one item, we can go for arrays. Arrays are the variables which allow us to store more than one value.

In this topic:
  • What is an Array?
  • What are the different types of arrays?
  • One Dimensional Array:
  • Multi-Dimensional (Two Dimensional) Arrays:
  • How to Re-size an Array?
  • Array Options
  • Example File

Related pages

merge cell in excel 2007what is vlookup in excel definitionrun macro when excel opensapplication.screenupdatingexcel dashboard vbaunprotect macro excelhow to run a sql query in excelshading cells in excelmerge duplicate rows in excel 2010fte calculator excelcreating a hyperlink in excelsql pivot explainedrunning macros in excelvba excel copy rangefree excel 2013 add insglobal variables excel vbaado odbc connection stringexcel formulas made easyinterview question on c language with answers pdfsql interview questions pdfswitch vba excelcase statement vbaexcel find duplicates and deletergb exceloutlook vba codehow to pull data from another workbook in excelexcel activate workbookcheck for duplicate in excelnested if in vbamicrosoft excel charts tutorialhide excel cellsexcel macro loopconcatenate excelvba excel databaseexcel append data from multiple sheetsin excel vlookup formula examplevb interview questions and answersvba macros in excelexcel formulas with examples in excel sheet vlookupexcel vba macro buttonvba coding in accessgridlines in excel definitionhow to access vba in excel 2007protecting an excel workbookadodb recordset openexcel vba change cell colormsgbox in vb6how to hide cells in excelvlookup offsetexcel macro exittutorial on vlookupexcel vba datesfilesystemobject opentextfilecreate a worksheet in excelvba excel casequery sql from excelexcel vlookup isnamultiple project timeline template excelunhide column a excel 2007ucase vbavb exit forrange cells vba excelexcel hide functionexcel activate vbaaccess vba casems excel test questions and answersroot cause analysis template excelvba picturerun excel macro from accessrecording meeting minutes templateunhide hidden workbookprotected excel sheet unprotectmacro remove blank rowssql query for beginnersmerge rows in excelexcel vba clearcontentsmicrosoft excel if statementsexcel form creation tutorialloop macro excelmicrosoft word macros examplesexcel visual basic tutorial pdfremove excel workbook password