Fresh Excel Tips

Quick and Easy Excel Tips and Tutorials

How to Define Constants using the correct syntax in Excel VBA

In this article, we will be discussing how to define and use constants in Excel VBA. VBA constants are declared using the syntax Const Name As DataType = Value, as shown in the example below: Const ThisConstant As Integer = 7 Public ThisConstant2 As Double = 3.189 Just as with [...]