Mightyginger
Programmer
I've used Global variables within modules e.g. declare at the top of a module
Global testvariable
and then I can use and abuse that variable within that particular module but I can't seem to be able to declare a global variable within sheet code e.g. in sheet1 (view code) where I have all my code for my comboboxes I would like to pass variables between them using variables.
I get an error if I put at the top of my sheet1 code
Declare anothetestvar
saying that not allowed as public memebers of object variables - whatever that means.
Quite simply is there a way I can define a global variable somewhere and use it within my sheet1 code. Also, while I'm asking, I previously found that if I declared a global variable within, say, Module1 code I couldn't access it from any code written in Module2. Is there a way to pass them between modules please?
Thanks again guys!!!!!
Neil.
Global testvariable
and then I can use and abuse that variable within that particular module but I can't seem to be able to declare a global variable within sheet code e.g. in sheet1 (view code) where I have all my code for my comboboxes I would like to pass variables between them using variables.
I get an error if I put at the top of my sheet1 code
Declare anothetestvar
saying that not allowed as public memebers of object variables - whatever that means.
Quite simply is there a way I can define a global variable somewhere and use it within my sheet1 code. Also, while I'm asking, I previously found that if I declared a global variable within, say, Module1 code I couldn't access it from any code written in Module2. Is there a way to pass them between modules please?
Thanks again guys!!!!!
Neil.