All2Cheesy
Board Regular
- Joined
- Mar 4, 2015
- Messages
- 127
Hi all,
I've written a macro which copies a line, and pastes it down X amount of times (determined by a number in another field) However, when I run this macro, some of the formulas affected remove 'X' from the numbers in the formula.
e.g. assuming X is 50
if('A652'=1,"Y","N") will become if('A602'=1,"Y","N") in the formula.
Please note, the macro still works, as it will copy the formula down to the correct amount of lines, I am simply looking to have it do this without subtracting numbers from my formula.
Assistance would be greatly appreciated.
I've written a macro which copies a line, and pastes it down X amount of times (determined by a number in another field) However, when I run this macro, some of the formulas affected remove 'X' from the numbers in the formula.
e.g. assuming X is 50
if('A652'=1,"Y","N") will become if('A602'=1,"Y","N") in the formula.
Please note, the macro still works, as it will copy the formula down to the correct amount of lines, I am simply looking to have it do this without subtracting numbers from my formula.
Code:
Range("A652:AB652").Copy
Range("A652:AB652").Resize(Range("T2").Value).Insert Shift:=xlDown
Assistance would be greatly appreciated.