davedave24
Programmer
Hi. I'm writing a procedure that puts data into multiple worksheets, based on the listcount of a listbox. Each sheet has space for 20 lines; any more and a new sheet will be generated, and the additional lines filled there, and so on.
Later I will need to be able to 'load' one of these workbooks back into my userform and repopulate the controls with the data from the sheet (because they may be saved as a draft, and more added to later on)
How do I get the data from multiple ranges (always A16:F25) on different sheets (the number of which we won't know - generally no more than 2-3), into 1 multicolumn listbox? Is this even possible?
I'm thinking of a simpler way to do it - when the data is written to each sheet, I could have a blank sheet that just contains each record in 1 huge block, and load *that* into the listbox. The user never need see that sheet. If this method is used, is it possible that when the user prints the workbook from the userform, that this sheet not be printed?
Later I will need to be able to 'load' one of these workbooks back into my userform and repopulate the controls with the data from the sheet (because they may be saved as a draft, and more added to later on)
How do I get the data from multiple ranges (always A16:F25) on different sheets (the number of which we won't know - generally no more than 2-3), into 1 multicolumn listbox? Is this even possible?
I'm thinking of a simpler way to do it - when the data is written to each sheet, I could have a blank sheet that just contains each record in 1 huge block, and load *that* into the listbox. The user never need see that sheet. If this method is used, is it possible that when the user prints the workbook from the userform, that this sheet not be printed?