Saturday, 9 November 2013

VBA Fundamentals

 

 

image

 

 

image

 

 

 

image

 

 

 

image

 

 

The VBA Environment

 

image

 

 

Developer Tools on Excel

 

image

 

 

image

 

 

Developer Tools on Access

image

 

 

image

 

 

Developer tools on PowerPoint

image

 

 

 

Demo of Developer Tab on Excel

 

image

 

 

 

image

 

 

 

To Switch between Application and VBA Edit press ALT + F11

image

 

 

 

image

 

 

image

 

 

image

 

 

 

image

 

 

 

image

 

 

image

 

 

 

image

 

 

Macro Security

 

image

 

 

image

 

 

 

The Macro Recorders

 

image

 

 

 

image

 

 

 

image

 

 

 

image

 

 

image

 

 

 

 

With the Option of “USE Relative Reference”, macro can be executed on any selected cell

 

 

image

 

 

image

 

 

The Visual Basic Editor

image

 

 

image

 

 

image

 

 

 

image

 

 

image

 

 

The Properties Window

 

image

 

 

image

 

 

image

 

 

 

image

 

 

 

image

 

 

 

The Debugger

 

image

 

 

image

 

 

 

image

 

 

 

image

 

 

 

F9 will mark current position in break point

 

image

 

 

F8 will perform step into operation in break mode

image

 

 

 

Shift + F8 will perform Step Over operation

 

image

 

 

 

CTRL + SHIFT + F8 will perform Step out operation

 

image

 

 

image

 

 

Immediate window will help to execute the VBA code immediately with the help of Debug object

image

 

 

 

Locals windows will be used to display the expression values of current context of program

 

image

 

 

 

Watch will be used to view current context expression values as well as used for Conditional Break Points.

 

image

 

 

 

image

 

 

CALL Stack window is used to display the Called and Calling information of Program context

image

 

 

 

Compiling the VBA Project

 

This operation will convert current code into P-Code format which will be executed in Virtual Machine of Application.  There is no way to create Stand alone executable using VBA…

image

 

 

image

 

 

 

image

 

 

 

image

 

 

Some Useful add ins site for VBA Developers

image

 

 

 

image

 

 

 

image

 

 

 

image

 

 

 

image

 

 

 

The VBA Language

 

image

 

 

image

 

 

 

This will give the Intellisense support for VBA Development

image

 

 

 

image

 

 

image

 

 

 

image

 

 

 

image

 

 

 

image

 

 

image

 

 

 

image

 

 

 

image

 

 

image

 

 

image

 

 

image

 

 

image

 

 

 

image

 

 

 

image

 

 

image

 

 

 

image

 

 

image

 

 

image

 

 

image

 

 

image

 

 

 

image

 

 

 

image

 

 

 

image

 

 

 

image

 

 

 

image

 

 

 

image

 

 

 

image

 

 

 

image

 

 

 

image

 

 

image

 

 

image

 

 

 

image

 

 

 

image

 

 

 

image

 

 

 

image

 

 

image

 

 

image

 

 

 

image

 

 

 

image

 

 

image

 

 

 

image

 

 

image

 

 

 

image

 

 

 

image

 

 

Event Declaration Syntax

 

image

 

 

 

image

 

 

 

image

 

 

 

image

 

 

 

image

 

 

 

image

 

 

 

image

 

 

 

image

 

 

 

image

 

 

 

image

 

 

 

image

 

 

 

image

 

 

 

image

 

 

 

image

 

 

image

 

 

image

 

 

 

image

 

 

 

image

 

 

 

image

 

 

image

 

 

image

 

 

image

 

 

 

image

 

 

 

image

 

 

image

 

 

 

image

 

 

image

 

 

 

image

 

 

 

image

 

 

 

image

 

 

 

image

 

 

 

The Object Model

 

image

 

 

 

image

 

 

 

image

 

 

 

image

 

 

 

image

 

 

image

 

 

 

image

 

 

image

 

 

image

 

 

image

 

 

image

 

 

 

image

 

 

image

 

 

 

image

 

 

 

image

 

 

To make a default properties of Collections

image

 

 

image

 

 

image

 

 

 

image

 

 

 

image

 

 

 

image

 

 

 

image

 

 

The Event Model

 

image

 

 

 

image

 

 

 

image

 

 

 

image

 

 

 

image

 

 

 

image

 

 

 

 

image

 

 

 

 

image

 

 

 

image

 

 

 

image

 

 

 

image

 

 

User form Events

 

image

 

 

image

 

 

Debugging and Error Handling

 

image

 

 

image

 

 

 

image

 

 

 

image

 

 

image

 

 

 

image

 

 

 

image

 

 

 

image

 

 

 

image

 

 

image

 

 

 

image

 

 

 

image

 

 

 

image

 

 

 

image

 

 

 

image

 

 

 

image

 

 

 

Demo of Error handling

 

image

 

 

image

 

 

image

 

 

image

 

 

 

image

 

 

 

image

 

 

 

 

 

Putting All together

 

image

 

 

 

image

 

 

 

image

 

 

 

image

 

 

image

 

 

 

image

 

 

image

 

 

image

 

 

 

Demo of Custom Ribbon

 

image

 

 

image

 

 

image

 

 

 

image

 

 

image

 

 

 

image

 

 

 

image

 

 

image

 

 

 

image

 

 

image

 

 

 

image

 

 

image

 

 

 

image

 

 

 

image

 

 

 

image

 

 

image

 

 

 

image

 

 

image

 

 

 

 

 

 

 

Blogger Labels: Fundamentals,Environment,Developer,Tools,Excel,PowerPoint,Demo,Switch,Application,Edit,Macro,Recorders,Option,Relative,Reference,cell,Visual,Basic,Editor,Properties,Debugger,mode,Shift,Step,Over,CTRL,Immediate,Debug,Locals,context,Watch,Conditional,Break,Points,CALL,Stack,information,Program,Project,Code,Virtual,Machine,Stand,Some,Useful,Developers,Language,Intellisense,Development,Event,Declaration,Syntax,Object,Model,Collections,User,Events,Error,Custom,Ribbon

No comments:

Post a Comment