About Arrays

  • Thread starter Thread starter hke
  • Start date Start date
H

hke

If I set the first element in an array equal to the value of cell A1
(say it is 5) and I later clear the contents of A1, the value of first
element in array then becomes 0 (in case array is integer)

Is there a way to make sure the Array values are left unchanged by
"actions" on the sheet?
 
I think you might want to show your code. The change in the worksheet won't
change the value in the array. But it is likely that your procedure that
loads the array stops before the cell changes, and re-starting will
re-initialise the code.

Give the code and a detailed explanation .

--

HTH

RP
(remove nothere from the email address if mailing direct)
 
hke,

Are you actually setting the value of the array to the value of A1, or are
you setting the first of an array of objects to be cell A1?

Posting your code would help....

HTH,
Bernie
MS Excel MVP
 

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

Back
Top