Subtle red herring.. The very original problem was
that group IDs applied to all open sheets, hence the
script that depended on file name.
I see no problem in getting the user to provide the
local ID, so that they can have group 1, and group
2, open in two different worksheets. I would even
suggest that the ID should preferably be a string
(making any unhidden IDs feel sensible).
There is still the problem of having two blank
worksheets open, both of which are based on the
template with the code, which now have identical
group IDs - but we are working on that...
I'm thinking that OnLoad, one counts the number of
open files from the worksheet collection as one
approach.
Philip Oakley