yoyoyojohnny
Technical User
Hi all,
I need some little help with the modules in VBA.
I have some background with VB and there I was Dim-ming the variables that should keep their current value when changed by different events (buttons clicked, etc.). I now want to dimension some variables in a module in an Excel file and give them starting values and keep changing them with events in worksheets, but it does not work.
In the module code I write just this:
Dim intRow, intCol as Integer
intRow = 2
intCol = 2
And with the button in the worksheet I want to add values in the worksheet so that the intRow variable keeps changing (intRow = intRow +1).
Please help.
I need some little help with the modules in VBA.
I have some background with VB and there I was Dim-ming the variables that should keep their current value when changed by different events (buttons clicked, etc.). I now want to dimension some variables in a module in an Excel file and give them starting values and keep changing them with events in worksheets, but it does not work.
In the module code I write just this:
Dim intRow, intCol as Integer
intRow = 2
intCol = 2
And with the button in the worksheet I want to add values in the worksheet so that the intRow variable keeps changing (intRow = intRow +1).
Please help.