What are possible suffixes after variable name in VBA?
Posted
by
archimed7592
on Stack Overflow
See other posts from Stack Overflow
or by archimed7592
Published on 2011-02-10T14:17:27Z
Indexed on
2011/02/10
15:25 UTC
Read the original article
Hit count: 165
vba
As I've already figured out, there is at least six of them: !@#$%&
.
Here is snip:
Dim A!, B@, C#, D$, E%, F& Debug.Print "A! - " & TypeName(A) Debug.Print "B@ - " & TypeName(B) Debug.Print "C# - " & TypeName(C) Debug.Print "D$ - " & TypeName(D) Debug.Print "E% - " & TypeName(E) Debug.Print "F& - " & TypeName(F)
Outputs
A! - Single B@ - Currency C# - Double D$ - String E% - Integer F& - Long
Where is documentation on this syntax sugar?
What other possible suffixes are there?
Is there one for Date?
© Stack Overflow or respective owner