What is the best way to set up a look thru an Excel query table? I have a worksheet of query data "SelectedData"
Need to loop thru each of these query table rows and for each row I come across add an entry into a row in worksheet "MainData"
I have the logic written to insert data into my "MainData" worksheet but I cannot find anything to show me how to loop thru my query table and process send the current query table row to my Insert_Rows_General subroutine.
Might be helpful if you saw my attached worksheet. I take the Prefix_Id then do a lookup in another WS to get a GL_Acct. I then take the GLAcct and 3 amounts and create an entry in the MainData Worksheet.
Entry in MainData table would be as follows
CurrentDate, Descr Glacct NetAmnt TaxAmnt, GrossAmnt
I use offsets in MainData table to determine in which columns I put the data.
Want to know how to properly code the loop thru this query table. Have too be careful that it is upward compatible when moving from 2007 to 2010 to 2013 etc.
Amy help would be greatly appreciated.
Need to loop thru each of these query table rows and for each row I come across add an entry into a row in worksheet "MainData"
I have the logic written to insert data into my "MainData" worksheet but I cannot find anything to show me how to loop thru my query table and process send the current query table row to my Insert_Rows_General subroutine.
Might be helpful if you saw my attached worksheet. I take the Prefix_Id then do a lookup in another WS to get a GL_Acct. I then take the GLAcct and 3 amounts and create an entry in the MainData Worksheet.
Entry in MainData table would be as follows
CurrentDate, Descr Glacct NetAmnt TaxAmnt, GrossAmnt
I use offsets in MainData table to determine in which columns I put the data.
Want to know how to properly code the loop thru this query table. Have too be careful that it is upward compatible when moving from 2007 to 2010 to 2013 etc.
Amy help would be greatly appreciated.