> And thank you for the time you spent investigating and testing! It certainly
> provided a very definite benefit to me <smile>
Well, I'm sorry I didn't provide the correct version of my GroupSheets
proc. I'm out of town at the moment and don't have access to my (home)
network. I only had the unrevised version in PERSONAL.XLS and tried to
improvise with that here. (Just didn't get around to updating it with
the recenyt version, yet) The line with the 'AND' operator was used to
edit an array used to populate a listbox as users selected sheets to
group from a main listbox. This was a task-specific feature handle in a
userform where users selected sheets in lstSheetsList followed by
selecting criteria in a combobox, where the sheets were copied to a new
workbook for a specific department. The selected sheets were listed in
lstSheets1 and unselected sheets were listed in lstSheets2 so these
could be grouped to copy into a new wkb for another department. The
result was each department got their respective monthly reports and the
original file was kept intact for future ref. I had facilitated the
management of sheetnames inside my GroupSheets proc for this project,
but decided it could be a stand-alone reusable proc for the purpose of
grouping sheets.
My version is adapted from original code I got from Rob Bovey. I have a
tendancy to get projects working before doing code
refinements/optimizations and so some stuff is <IMO> usually 'in the
rough' longer than I'd like due to not getting time to get at it.<g>
--
Garry
Free usenet access at
http://www.eternal-september.org
ClassicVB Users Regroup! comp.lang.basic.visual.misc