The userform is modal by default (haven't changed it) and I also modified that code and still no go. The sheets are hidden because it is an application that the user has where they do not need to see the sheets but calculations are done on the sheets in the background.
I was thinking, there is a userform that is displayed in the background before the frmSheetList userform is shown...would another modal userform conflict with this one and would declaring frmSheetList as an object be the way to go?
Main Topics
Browse All Topics





by: AvelanPosted on 2009-04-03 at 00:43:27ID: 24057497
Hey,
ox1.Select ed(i)).Cop y after:=("Book1.xls") ts(1) i think, defining a sheet
a couple of suggestions.
Is the form you're showing in populateAndImport a modal form or not?
Because if it's not, your importsheets function gets called before you do any selecting
on the form.
Also on this line:
wbk.Worksheets(form1.ListB
the after part should be like after:=Activeworkbook.Shee
after which the sheet will be copied to.
And you're setting the copied sheets to invisible so you sure they're not copied? :P
-Avelan