I do not know if i have reasonable reason to be concerned about this, but i am pretty certain you folks would know-
I have a combobox which i wish to populate with three non-contiguous columns from a table. The table, at present, has about 550 records (rows) and 36 fields (columns). Of course the data i want reside in columns 1,17 and 36...
In similar instances i:
- Copy the columns to a nice empty area of a worksheet next to one another
- Use combobox.list = range.currentregion.value to populate the box
- Erase the region
I do so because i am afraid that using the entire table and just giving widths to the columns i want will have detrimental effects on performance by overtaxing memory and/or any other resources by loading the entire table, though i notice that my present method takes a hit in terms of time to process the copy/pastes, even when i do so on a remote location of the same worksheet (as opposed to another worksheet, presuming this has any bearing whatsoever). As an added note, the table can potentially grow to an unknown number of records.
I believe (and i am embarrassed to say i have not run a time trial) that running loops and reading the data into an array would be more time consuming.
Is there a "rule of thumb" that would guide me as to when to use my method rather than just using the entire dang table as my list source, or am i worried about something that isn't a concern (due to reasons that i certainly don't understand as of yet!)? Just as, if not more, important, is there a way to do this that perhaps i have not considered?
Thank-You Very Much, as ALWAYS!
Bookmarks