'Statements' category

You are here: Excel » VBA » Statements »


  • DO LOOP statement (1)
  • FOR NEXT statement (6)
  • GoTo statement (1)
  • IF THEN ELSE statement (6)
  • SELECT CASE statement (1)
  • SET statement (1)
  • WITH … END WITH Statement (4)

  • How to use the SET statement
    The SET statement allows you to save an object reference to a variable, the image above demonstrates a macro that […]
    How to use the GOTO statement [VBA]
    The image above demonstrates the GoTo statement. It "jumps" or "navigates" to another place in the code, in this case, "Start". […]
    How to use the WITH … END WITH statement
    The With ... End With statement allows you to write shorter code by referring to an object only once instead […]
    How to use the DO LOOP statement
    The Do Loop statement allows you to repeat specific code until a condition is met. There are two possible ways […]
    How to use SELECT CASE statement
    The SELECT CASE statement allows you to compare an expression to multiple values. It is similar to the IF THEN ELSE […]
    How to use the FOR NEXT statement
    Table of Contents FOR NEXT statement FOR NEXT with a counter variable FOR each NEXT example FOR NEXT with counter […]
    How to use the IF THEN ELSE ELSEIF END IF statement [VBA]
    This article demonstrates how to use the If ... Then statement in Visual Basic for Applications (VBA). You can combine […]
    Extract cell references from a formula
    This article demonstrates a User Defined Function that allows you to extract cell references from a formula in a given […]
    Resize a range of values (UDF)
    The User Defined Function (UDF) demonstrated in this article, resizes a given range to columns or rows you specify. This […]
    Find the most/least consecutive repeated value [VBA]
    This post Find the longest/smallest consecutive sequence of a value has a few really big array formulas. Today I would like to […]
    How to create a list of comments from a worksheet programmatically
    Did you know that you can select all cells containing comments in the current sheet? Press F5, press with left […]
    How to highlight row of the selected cell programmatically
    Today I would like to share with you these small event handler procedures that make it easier for you to […]
    Finding the shortest path – A * pathfinding
    Two months ago I posted some interesting stuff I found: Shortest path. Let me explain, someone created a workbook that calculated […]
    Customize Excel maze
    Terry wants to make a different sized maze and I think that is a great idea. Perhaps you remember that I […]
    Show / hide a picture using a button
    This article explains how to hide a specific image in Excel using a shape as a button. If the user […]
    Run a Macro from a Drop Down list [VBA]
    This article demonstrates how to run a VBA macro using a Drop Down list. The Drop Down list contains two […]
    Excel calendar [VBA]
    This workbook contains two worksheets, one worksheet shows a calendar and the other worksheet is used to store events. The […]
    Create links to all sheets in a workbook programmatically
    The macro demonstrated above creates hyperlinks to all worksheets in the current worksheet.  You will then be able to quickly […]
    Combine cell ranges ignore blank cells
    The image above demonstrates a user defined function that merges up to 255 cell ranges and removes blanks. I will also […]

    Excel formula categories

    AverageChooseCombine MergeCompareConcatenateConditional FormattingCountCount valuesDatesDuplicatesExtractFilterFilter recordsFiltered valuesFilterxmlHyperlinkIf cellIndex MatchLogicLookupsMatchMaxMinNumbers in sumOR logicOverlappingPartial matchRecordsSequenceSmallSort bySort valuesSumSumifsSumproductString manipulationTimeUnique distinct recordsUnique distinct valuesUnique recordsUnique valuesVlookupVlookup return values

    Excel categories

    Latest updated articles.
    More than 300 Excel functions with detailed information including syntax, arguments, return values, and examples for most of the functions used in Excel formulas.
    More than 1300 formulas organized in subcategories.
    Excel Tables simplifies your work with data, adding or removing data, filtering, totals, sorting, enhance readability using cell formatting, cell references, formulas, and more.
    Allows you to filter data based on selected value , a given text, or other criteria. It also lets you filter existing data or move filtered values to a new location.
    Lets you control what a user can type into a cell. It allows you to specifiy conditions and show a custom message if entered data is not valid.
    Lets the user work more efficiently by showing a list that the user can select a value from. This lets you control what is shown in the list and is faster than typing into a cell.
    Lets you name one or more cells, this makes it easier to find cells using the Name box, read and understand formulas containing names instead of cell references.
    The Excel Solver is a free add-in that uses objective cells, constraints based on formulas on a worksheet to perform what-if analysis and other decision problems like permutations and combinations.
    An Excel feature that lets you visualize data in a graph.
    Format cells or cell values based a condition or criteria, there a multiple built-in Conditional Formatting tools you can use or use a custom-made conditional formatting formula.
    Lets you quickly summarize vast amounts of data in a very user-friendly way. This powerful Excel feature lets you then analyze, organize and categorize important data efficiently.
    VBA stands for Visual Basic for Applications and is a computer programming language developed by Microsoft, it allows you to automate time-consuming tasks and create custom functions.
    A program or subroutine built in VBA that anyone can create. Use the macro-recorder to quickly create your own VBA macros.
    UDF stands for User Defined Functions and is custom built functions anyone can create.
    A list of all published articles.