Showing related tags and posts accross the entire site.
-
If you have Private i as Integer; In your class (not in a function), you can use the 'Class_Initialize' function to set the variable. You would do this like so: Private Sub Class_Initialize() i = 5 End Sub
-
Hi How am I able to assign a default value to a variable in a class module in VBA? For example in VB.NET I can use this declaration: Private i as integer = 5 to set the variable's default value to 5. I want each new instance of the class to have the property Class1.i = 5 thank you!