Hi folks,
I have a dynamic table to track activities. There are a bout a dozen fields for each record and not all are always filled in. One column titled "Activity" is always filled in, BUT, since we may add or delete columns, the Activity field is not always in Column G.
I'm writing a VBA macro for the Sort, so I need to know which column to use to count the number of records to be sorted. The field names and their columns are stored in an array called myTitles(x,1) and myTitles(x,2).
I was trying something like noRecords = Counta((myTitles(x,2):myTitles(x,2)) which is similar to the cell formula CountA(G:G)
Obviously it did not work. Any help would be appreciated
TIA
Graebeard
I have a dynamic table to track activities. There are a bout a dozen fields for each record and not all are always filled in. One column titled "Activity" is always filled in, BUT, since we may add or delete columns, the Activity field is not always in Column G.
I'm writing a VBA macro for the Sort, so I need to know which column to use to count the number of records to be sorted. The field names and their columns are stored in an array called myTitles(x,1) and myTitles(x,2).
I was trying something like noRecords = Counta((myTitles(x,2):myTitles(x,2)) which is similar to the cell formula CountA(G:G)
Obviously it did not work. Any help would be appreciated
TIA
Graebeard