When declaring a constant, you can use any one of the following data types: Boolean, Byte, Integer, Long, Currency, Single, Double, Date, String, or Variant
Sub constDec()
Const dialogName = "Enter Data"
Const slsTax = 8.5
Const Discount = 0.5
Const ColorIdx = 3
MsgBox slsTax
End Sub
Related examples in the same category