Thank you for taking time to try and understand what i mean and force me
to take care about words.
Some people say the difference between Einstein and other people was:
He was not wondering about details and mathematics like others. He was
looking for other (interesting) questions.
I'm not saying i'm Einstein. Just saying sometimes it's better not to
read too much the details and choose the global point of view for the
opening it brings. ;-)
(the mathematics where written by his friend, and his end of life jobs
where not followed by people --they are today--)
Please, do try to allow me my other way of saying. My saying is wrong in
your (-sorry but- frozen) model. I understand what makes you sad. You
are right to say (and add after my writting) that vba is powerfull
enought to also permit a:
dim s as sheet
syntax and, ok, my writing can make think it's forbidden to write this.
(I must choose a "does not mean what we expect because we need more to
create the sheet")
I forgot words and look at ideas only: the syntax was juged "not enought
to do the job" because there's not the same level between sheets and
strings and we do not want people to forgot this difference.
the difference between "as sheet" and "as new sheet" is explained at the
end of the
http://www.cpearson.com/excel/variables.htm
link given by Jim Cone
and i assume Frans (the asker) will also read it.
Even after the article you still must admit we do _not_ have a
dim T as new string
syntax (this is forbiden: vba doesn't expect this kind of object after
new) here comes my answer.
Why not ? if "set / new" is so powerfull and save time, why not also
using it for strings ???
"do we really need a special 'new' syntax with sheets ?". That's the way
i see the abyss of the question. (you're right: going further and not
said a word to warn readers, so ? it's me; human beeing, hello you ... )
well, in fact you might say i'm an original guy; But that's the
difference between vba and human talking.
My idea was here:
house (=plenty units and workers) versus unit
so "dim as sheet" does not mean the construct of the house...
because the vba syntax wish to distinguish them
Am i such raving mad ? Whatever: i don't care it brings fun...
but if you read me more, you should be warn i'm an original one