In VBA Macros, Variables are used to temporarily store information. This piece of information can be retrieved by your code and used or changed and then reused. In a lot of cases, using variables instead of setting values can make your code snippets and macros more reusable across files. For example, in a quiz you […]
Continue readingIn Excel there is a formula called “Offset”. This returns the value of a cell that is a given number of rows and columns away from a cell that you referenced. The syntax is =OFFSET(Reference, Rows, Columns). Reference is the cell you are going to refer to, or start from Rows is a number, it is […]
Continue readingOne of the keyboard shortcuts that I use most often in Excel allows you to quickly move around big spreadsheets by jumping to the start, end, top or bottom of the table. It is also the basis for some of the most repeated VBA Macro code snippets that I use. There are 8 shortcuts […]
Continue readingThe Story So Far… If you have been following this string of posts, you will have created a macro which has so far changed headings in a file and also formatted them. This is a link to the last post. At the end of the last post I also asked you to make some […]
Continue readingThe Story So Far… In our last post (click here to read it) we created a macro called “mySecondMacro”. This changed the 4 headings on our file to this… … and our Macro was this… If you have been following these posts you will already have a file saved as above. Or you can […]
Continue readingThe Story So Far… Our series of posts on Excel VBA Macros began with these posts: Introduction Setting up Excel for VBA Recording your first Macro (and challenge question) Answer to challenge question Reading your first Macro If you have not already read them, I would suggest going through them now before continuing. The last […]
Continue readingThe Story So Far…. If you have been following these posts so far, you should have read Introduction Introduction 2 & Setting Up Excel For Macros Recording A Macro & Challenge Question Answer To Challenge Question You should have a file saved from the earlier posts where you recorded a macro and ran it using […]
Continue readingThe Challenge In the last post (click here) we recorded a macro. This macro took our basic report….. and automatically formatted the basic report to a layout that we needed….. However, when we added in an extra row and ran the macro, it didn’t give us what we might have expected….. Your challenge was […]
Continue readingThis post will give you more of an introduction to Excel VBA Macros and you will be recording your first macro. After recording the macro, we will then look at the code generated and start breaking it down, this will be the start of your adventures coding macros!! The Story So Far….. The following […]
Continue readingIf you spend a lot of time working with Office applications such as Excel, Word, PowerPoint, etc. there is a good chance that you do repetitive and monotonous tasks, probably without thinking about it or questioning it. Over the next few posts I will talk about Excel VBA Macros and the first examples will look […]
Continue readingDon’t be a slave to your computer!! Introduction to VBA Macros You may have heard references to VBA or Macros in the past, but what are they? VBA VBA, or Visual Basic for Applications, allows users to increase and improve the functionality of some programs by making more use of menus, tool-bars and options already […]
Continue readingThe IFERROR formula in Excel returns a value you specify if a formula results in an error, if there is no error it returns the value of the original formula. The IFERROR function is relatively new to Excel (I believe it started in Excel 2007). For a similar workaround to some VLOOKUP formula error results, […]
Continue readingThe VLOOKUP is one of Excel’s most useful functions. In its most common form, it is a database function which works with lists of things in databases, or Excel worksheets. Your list of things can be pretty much anything, names and phone numbers, part numbers and details, details of your album collections, etc. A VLOOKUP […]
Continue readingA wildcard character is a character that can be used as a substitute for another character or characters. I use wildcards in formula mostly in reference or look-up formulas like COUNTIF or SUMIF for example. The wildcards can be used to look up words beginning with or ending with criteria. Note : It can […]
Continue readingContinuing the series of posts about useful, but sometimes underused Excel formulas, this post will give you an introduction to SUMPRODUCT. SUMPRODUCT is one formula that pretty much combines two together. SUM : When you add two or more numbers together, the result of these is the “SUM” of them. PRODUCT : When you multiply […]
Continue reading