0

Does anyone know what 1# means in excel macros? I keep seeing it in macros code but do not know what it means.

For example: avg_change = 1#.

Has anyone seen this before?

shruti1810
  • 3,920
  • 2
  • 16
  • 28

2 Answers2

2

The type-declaration character for Double is the number sign #. Also called HASH

Some of the other type declarations are:

Integer %
Long &
Currency @
Single !
Double #
String $
shruti1810
  • 3,920
  • 2
  • 16
  • 28
0

It's a type declaration. The # (hash) is used to declare type Double.

See: Use of symbol # (hash) in VBA Macro

Community
  • 1
  • 1
Bobbyrogers
  • 302
  • 2
  • 10