How to color alternate lines in Excel

How to color alternate rows in Excel

A couple of weeks ago we were preparing for a presentation.  Much of the presentation is constructed from linked Excel worksheets into PowerPoint. This technique is great because the presentation automatically updates each time the Excel worksheets change.  In the presentation, there are also some PowerPoint tables in the default blue striped layout. Then came … Read more

Cell and Range VBA properties and actions

VBA Code Snippets

Manipulating ranges and cells is one of the most common actions in VBA.   You can use the following to either learn from or just to copy and paste into your own code. Referencing ranges & cells from the worksheet ‘Reference range by address Workbooks(“WorkbookName.xlsx”).Worksheets(“SheetName”).Range(“A1:D4”).[Other properties and actions] ‘Reference cells by row and column – Cells(Row,Column) … Read more

Workbook VBA properties and actions

VBA Code Snippets

Working with workbooks is one of the most common actions when writing VBA code.  The following is a reference guide to for finding the right syntax. Contents: Referencing workbooks by name Referencing workbooks by their status Referencing workbooks by when they were opened Assign a workbook to a variable Create new workbooks Opening workbooks Counting … Read more

Worksheet VBA properties and actions

VBA Code Snippets

Working with worksheets is one of the most common actions when writing VBA code.  The following is a reference guide to for finding the right syntax. Referencing worksheets from the workbook ‘Reference a worksheet in another workbook Workbooks(“WorkbookName.xlsx”).Worksheets(“SheetName”).[other properties/actions] ‘Reference a worksheet in the same workbook as the VBA code ThisWorkbook.Worksheets(“SheetName”).[other properties/actions] ‘Reference a worksheet … Read more

Sorting an array alphabetically with VBA

VBA Code Snippets

At some point in your VBA life it will be necessary to display or re-order an array/list alphabetically (or reverse alphabetically).  Unfortunately, VBA doesn’t have a function for sorting arrays automatically, but with a little bit of coding we can create a reusable function which would achieve something similar. Setting up the example This first VBA … Read more

Excel’s hidden camera tool

Hidden Camera Tool

The camera tool is probably one of the most underutilized tools in Excel. The reason it is underutilized is because it is hidden. This simple tool will take a picture of a range of cells and place the picture of those cells on another part of the workbook.  You can move, re-size and add picture formatting options the picture. … Read more