I'm trying to do some very basic stuff with VBA in Excel (2010) for a user form.
I have the following as my 1st and only line of code so far (I'm trying to define an integer for a loop):
dim i as integer = 1
when I press enter at the end of the line I get the following error:
Compile error: Expected: end of statement