Macro Example Sub SetPageOrientationToLandscape() = wdOrientLandscape End Sub This Word VBA macro sets the page orientation of an active document to landscape.By end of this session you will be able to write the procedures and functions to automate tasks and you will find significant time saving while working with your projects.
Excel VBA Programming helps to learn from the basics to write your own VBA programs like sub routines, functions to automate your daily tasks.
You can also use the Editor to build userforms which are basically floating screens that display ActiveX controls.
VBA code is typed in what are called modules. The VBA Editor is where you view, type, edit, debug and run your VBA code.