Blogs from Wise Owl on VBA tutorial in Writing VBA (page 2 of 2)

Showing blogs 21-36 (out of 36)

Using CreateObject and GetObject to create references

Posted by Andy Brown on 09 December 2011

Although it's usually easiest to create references to other applications using the Tools/References menu as described in an earlier blog, you can use the method shown in this blog instead.

Tags:   VBA macros | References    |    Writing VBA | VBA tutorial

Referencing Word and other applications in Excel VBA

Posted by Andy Brown on 05 December 2011

Even if you're writing Visual Basic macros within Excel, there's nothing to stop you inserting text into Word documents, manipulating PowerPoint slides or sending Outlook emails. This blog explains how to reference other applications, and write macros in Excel to link to other Microsoft Office software

Tags:   VBA macros | References    |    Writing VBA | VBA tutorial

Error-handling and error trapping in Excel Visual Basic macros

Posted by Andy Brown on 29 November 2011

What happens when your macros go wrong? That depends what error-handling you have in place. Learn how to use ON ERROR and other commands to trap errors in a structured way.

Debugging macros in Excel Visual Basic / VBA

Posted by Andy Brown on 25 November 2011

This series of blogs is intended to provide online training in how to debug in Visual Basic for Applications, including using breakpoints and the immediate window.

Event-handling macros in Excel Visual Basic

Posted by Andy Brown on 22 November 2011

Want to do something when a user opens a workbook, or stop them clicking on a particular cell? You need to learn how to attach code to Excel workbook or worksheet events!

Tags:   Writing VBA | VBA tutorial    |    VBA macros | Events

Looping in Visual Basic for Applications macros

Posted by Andy Brown on 15 November 2011

There are 4 types of loop in Visual Basic for Applications - this blog shows how and when to use each type of VBA loop structure.

Conditions in Visual Basic for Applications - IF and SELECT CASE

Posted by Andy Brown on 15 November 2011

This part of the Excel VBA training series of blogs shows how to use IF / ELSE / END IF within VBA, and also how to use the alternative SELECT / CASE syntax within macros.

Collections, objects, methods and properties in Excel VBA

Posted by Andy Brown on 09 November 2011

Visual Basic for Applications (VBA) is what's called an object-orientated programming language. This blog explains what this means!

Tags:   VBA macros | General    |    Writing VBA | VBA tutorial

Using the InputBox Function in VBA Macros

Posted by Andy Brown on 03 October 2011

The InputBox function in Visual Basic for Applications allows you to get - as the name suggests - input from the user. This blog shows how to use it!

Using MsgBox to Display Messages in VBA Macros

Posted by Andy Brown on 28 September 2011

The MsgBox command in Visual Basic for Applications allows you to display basic messages, but you can also make it prettier, and even use it to ask questions or display multiple-line messages! Read on to find out more about this versatile VBA command.

Variables and Constants in Excel Visual Basic

Posted by Andy Brown on 05 September 2011

This blog explains the nuts and bolts of Excel VBA variables, including how to declare them, how to set their scope and all sorts of other tips and tricks. The blog also covers constants in Excel macros.

Free VBA training

Posted by Andy Brown on 16 August 2011

As well as running introductory and advanced VBA training courses in the UK for small groups, we've also published this online training course teaching how to code macros using Visual Basic for Applications (VBA) within Excel. The tutorial covers everything from basic recording through to creating classes - something for everyone!

Tags:   VBA macros | General    |    Writing VBA | VBA tutorial

Relative Selection using Excel VBA Macros

Posted by Andy Brown on 16 August 2011

This blog shows the various techniques within Excel Visual Basic for moving around and selecting cells relative to the active cell or selection. The blog includes a discussion of the Offset, End, Resize, Range, EntireRow, EntireColumn and CurrentRegion methods.

Selecting Cells using Excel VBA Macros - Absolute

Posted by Andy Brown on 11 August 2011

This blog gives the various possible ways to select cells, ranges, columns and rows using Visual Basic for Applications in Excel. Useful for the VBA newbie, but even gurus might find one or two commands they'd missed!

How to record macros in Excel Visual Basic

Posted by Andy Brown on 30 June 2011

If you're not sure what the Excel Visual Basic for Applications language is (or how it can help you) this blog attempts to explain! Learn what VBA is, and how you can record macros and then replay them again and again to automate work in Excel.

Tags:   Writing VBA | VBA tutorial    |    VBA macros | Recording macros

Commenting out code in VBA

Posted by Andy Brown on 28 April 2011

Commenting code is an art form! This series of blogs explains why, how and when to comment in VBA.

Tags:   VBA macros | General    |    Writing VBA | VBA tutorial
This page has 0 threads Add post