Is it possible to declare a public variable in vba and assign a default value?

I want to do this but it won't compile:

Public MyVariable as Integer = 123

What's the best way of achieving this?

51
задан ashleedawg 2 April 2018 в 08:09
поделиться