Fresh Excel Tips

Quick and Easy Excel Tips and Tutorials

How to define Variables in Excel VBA using the Dim statement

For this article, we are going to discuss how to use the proper syntax for declaring variables in Excel VBA. To do this, we will need to use the Dim statement. as shown in the example below: Dim apple As Double Dim basket As Integer Dim statements are of the general form Dim VariableName As DataType, where [...]

How to work with VBA Data Types and syntax in Excel

Today, we will be looking at various VBA Data types and how to use them in your VBA Code. Visual Basic supports the usual data types you’d expect to see in any programming language. The table below shows some of the VBA data types that are used most often when programming. There are other data types, [...]