Statistician
MIS
Hi
I'm having problems copying a string variable to a cell formula in excel.
The string is over 300 characters long and if I type this directly into a worksheet cell it works fine (i.e., the logic is correct as far as the formula goes).
The string is simply a long IF statement.
However, when trying perform this action using VBA it doesn't work. All I am using is the activecell.formula="=(IF statement)".
I have checked and the max lenth of a string is huge by comparison so I'm confused?
Can anyone offer some advice please?
I'm having problems copying a string variable to a cell formula in excel.
The string is over 300 characters long and if I type this directly into a worksheet cell it works fine (i.e., the logic is correct as far as the formula goes).
The string is simply a long IF statement.
However, when trying perform this action using VBA it doesn't work. All I am using is the activecell.formula="=(IF statement)".
I have checked and the max lenth of a string is huge by comparison so I'm confused?
Can anyone offer some advice please?