Setup: I have an excel document with a data entry form, the data for this form is entered into a table, which makes it easy to enter several rows of data. At least I thought so.
So, now I'm trying to select a table to insert its data into the appropriate places. My question, I think, is this: I select one row of the table at a time or the whole table and process each row separately. And how to do it?
I tried Sheets("Form").Range("dataForm[#ALL]").Select
and several variants of it, and no one worked.
If I select the table as a whole, I need to be able to process each row separately, and if I select each row separately, I will need to be able to start at the top of the table, since the data should be in order.
Any ideas?
EDit: add details. I have the form indicated above, and its data must be inserted into different tables, depending on the value of certain cells in the form. For convenience of discussion, we will call this cell type; it has three possible values, as defined in the drop-down list. These values ββare income, expense and transfer. Based on these values, we decide which table to add data to. Income from the table of income to expenses, etc.
So what I'm trying to do is select as many rows as there are and insert them into the correct table. Sorting is a bit more complicated than I explained, but if I can figure out the initial sort, then it will just sort it a few more times.
source share