define vba constant
To declare a constant that has an explicitly stated data type. Write a declaration that includes the As keyword and an explicit data type, as in the following examples: VB. Copy. You can declare multiple constants on a single line, although your code is more readable if you declare only a single constant per line. If you declare multiple constants on a single line, they must all have the same access level (Public, Private, Friend, Protected, or Protected Friend).