excel - Error when trying to populate array using range function with variables -
I'm having trouble creating an array For some reason, I can find all the tutorials that have the data & amp; Give yourself a clear shape in the code (which defeats the purpose of using VBA to start for this work).
My question is how is the array of a dynamically shaped form, even if it is possible in the way I am trying to get the code itself commented with the background and specific questions.
When I run the code, I want to "app-define or object-defined error" (1004)
besides, to populate the AR ... for A. The next loop can be disabled computably because the average 23k rows of average datasets
code:
sub DCList () 0, 0) form of integer In calculating the number of columns used in the integer 'workbook' cnum = ActiveWorkbook.Sheets ("data"). UsedRange.Column.Count 'set array dimension for 1 line & amp; Set array values for values found in the CNN column redemption DCList (1, cnum) category '(A1, CNM1) DCList = ActiveWorkbook.Sheets ("data"). Range (cell (1, 1), cells (1, cnum) 'value' Other information: 'DCLIST is a global variable set that is in the form of variant type'. The broad goal of this sub is to determine the column names of a dataset To do so, in which column the user will see the column lookup and sub
Try this version:
Sub-DCList_sub () Dim workload as long as DCList Dim cnum Calculate the number of columns that have been used in cnum = ActiveWorkbook.Sheets ("data"). UsedRange.Column.Count 'array array set for 1 line & amp; cnm column redeem DCList (1 to 1, 1) (A1, CNM1) DCList = ActiveWorkbook.Sheets ("data") for the values found in the range. Range (cell (1, 1), cell (1, CNUM) value 'Other Information: 'DCLIST is a global variable set that is in the form of variant type'. This comprehensive goal of this subdivision is only for a dataset Olm name to determine that the user (other sub) choose which columns to view the last sub
Comments
Post a Comment