I am maximizing a value ($L$4) by changing the values in ($A$2:$A$134), value changed from 0 to 1 and limiting to only 6 records being chosen. I want to copy a specific cell (Column C) for each of these and place it in a row in the new spreadsheet. Output would look like this
[TABLE="width: 384"]
<colgroup><col width="64" style="width:48pt" span="6"></colgroup><tbody>[TR]
[TD="width: 64, bgcolor: transparent, align: right"][/TD]
[TD="width: 64, bgcolor: transparent, align: right"][/TD]
[TD="width: 64, bgcolor: transparent, align: right"][/TD]
[TD="width: 64, bgcolor: transparent, align: right"][/TD]
[TD="width: 64, bgcolor: transparent, align: right"][/TD]
[TD="width: 64, bgcolor: transparent, align: right"][/TD]
[/TR]
</tbody>[/TABLE]
[TABLE="width: 384"]
<colgroup><col width="64" style="width:48pt" span="6"> </colgroup><tbody>[TR]
[TD="width: 64, bgcolor: transparent, align: right"]12472009[/TD]
[TD="width: 64, bgcolor: transparent, align: right"]12472010[/TD]
[TD="width: 64, bgcolor: transparent, align: right"]12472011[/TD]
[TD="width: 64, bgcolor: transparent, align: right"]12472012[/TD]
[TD="width: 64, bgcolor: transparent, align: right"]12472013[/TD]
[TD="width: 64, bgcolor: transparent, align: right"]12472014[/TD]
[/TR]
</tbody>[/TABLE]
My current code copies all 134 values and places them in a column.
Dim List_Current_row As Long
List_Current_row = Worksheets("Export").Cells(Rows.Count, 1).End(xlUp).Row + 1
If i = 0 Then
Worksheets("Export").Cells(List_Current_row, 1).Resize(1, 6).Value = _Worksheets("Parameters").Range("C2:C201").Value
Else
Worksheets("Export").Cells(List_Current_row, 1).Resize(200, 1).Value = _ Worksheets("Parameters").Range("C2:C201").Value
End If
Any ideas on what I am doing wrong? Any help is appreciated.
[TABLE="width: 384"]
<colgroup><col width="64" style="width:48pt" span="6"></colgroup><tbody>[TR]
[TD="width: 64, bgcolor: transparent, align: right"][/TD]
[TD="width: 64, bgcolor: transparent, align: right"][/TD]
[TD="width: 64, bgcolor: transparent, align: right"][/TD]
[TD="width: 64, bgcolor: transparent, align: right"][/TD]
[TD="width: 64, bgcolor: transparent, align: right"][/TD]
[TD="width: 64, bgcolor: transparent, align: right"][/TD]
[/TR]
</tbody>[/TABLE]
[TABLE="width: 384"]
<colgroup><col width="64" style="width:48pt" span="6"> </colgroup><tbody>[TR]
[TD="width: 64, bgcolor: transparent, align: right"]12472009[/TD]
[TD="width: 64, bgcolor: transparent, align: right"]12472010[/TD]
[TD="width: 64, bgcolor: transparent, align: right"]12472011[/TD]
[TD="width: 64, bgcolor: transparent, align: right"]12472012[/TD]
[TD="width: 64, bgcolor: transparent, align: right"]12472013[/TD]
[TD="width: 64, bgcolor: transparent, align: right"]12472014[/TD]
[/TR]
</tbody>[/TABLE]
My current code copies all 134 values and places them in a column.
Dim List_Current_row As Long
List_Current_row = Worksheets("Export").Cells(Rows.Count, 1).End(xlUp).Row + 1
If i = 0 Then
Worksheets("Export").Cells(List_Current_row, 1).Resize(1, 6).Value = _Worksheets("Parameters").Range("C2:C201").Value
Else
Worksheets("Export").Cells(List_Current_row, 1).Resize(200, 1).Value = _ Worksheets("Parameters").Range("C2:C201").Value
End If
Any ideas on what I am doing wrong? Any help is appreciated.