Array dimension

G

Guest

OK I have a bit of a tricky problem. I define the dimension for an array in
the code for a userform. the dimension is defiend variably so i cannot
replace the range with a number. this array is then intended to be used in a
modul in which a have the major parts of my code. in this modul I also
declare the array (since otherwise I get an error..dont ask me why). the code
for the declaration is:

Public blnCheckBoxArray() As Boolean

the sub in the userform code that sets the dimension is also public.

however when I refer to the array in the modul the program does not
understand, i get error number 9. Index outside of interval. how shall I code
so that I can use the array in the modul?
 
B

Bob Phillips

Is that array defined in the userform code module? If so, change it to the
standard code module.

--

HTH

Bob Phillips

(replace xxxx in the email address with gmail if mailing direct)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top