N
Norm
Hi,
Hopefully someone can help me. Win2000Pro & Excel2002
Here's what I have...
ActiveCell.FormulaR1C1 =
"=IF(COUNTIF(RC[-2]:R[1001]C[-2],RC[-1])>=1,1,"""")"
but as it gets filled down the rows increment as well, so
here's what I need (first time)
ActiveCell.FormulaR1C1 =
"=IF(COUNTIF(R11C64:R1010C64,RC[-1])>=1,1,"""")"
but the next time I would need
ActiveCell.FormulaR1C1 =
"=IF(COUNTIF(R11C65:R1010C65,RC[-1])>=1,1,"""")"
because I then fill it to a 1000 cells in the column
ActiveCell.Select
Selection.AutoFill Destination:=ActiveCell.Range("A1:A1000"),
Type:=xlFillDefault
This is great the first time I run the macro, but the next time, since
the range is fixed, it's wrong because I move over one column each
time. Is there a way to keep my relative reference but paste it so it
doesn't increment the cells throughout the fill? My data will always
be in the same 1000 rows, but the columns increment daily.
Thanks!!!
Norm
Hopefully someone can help me. Win2000Pro & Excel2002
Here's what I have...
ActiveCell.FormulaR1C1 =
"=IF(COUNTIF(RC[-2]:R[1001]C[-2],RC[-1])>=1,1,"""")"
but as it gets filled down the rows increment as well, so
here's what I need (first time)
ActiveCell.FormulaR1C1 =
"=IF(COUNTIF(R11C64:R1010C64,RC[-1])>=1,1,"""")"
but the next time I would need
ActiveCell.FormulaR1C1 =
"=IF(COUNTIF(R11C65:R1010C65,RC[-1])>=1,1,"""")"
because I then fill it to a 1000 cells in the column
ActiveCell.Select
Selection.AutoFill Destination:=ActiveCell.Range("A1:A1000"),
Type:=xlFillDefault
This is great the first time I run the macro, but the next time, since
the range is fixed, it's wrong because I move over one column each
time. Is there a way to keep my relative reference but paste it so it
doesn't increment the cells throughout the fill? My data will always
be in the same 1000 rows, but the columns increment daily.
Thanks!!!
Norm