Welldonedav
New Member
- Joined
- Dec 18, 2013
- Messages
- 5
hi,
i have a formula that works in excel but when i come to record it as a macro it no longer works and si ignored but doesn't diurupt any other part of the macro. Recording below
Range("O3").Select
ActiveCell.FormulaR1C1 = _
"=IF(OR(RC[-9]=""TY"",RC[-9]=""1M"",RC[-9]=""2M"",RC[-9]=""3M"",RC[-9]=""5M""),CONCATENATE(TRIM(RC[-7])/10,TRIM(RC[-8])),CONCATENATE(TRIM(RC[-7]),TRIM(RC[-8])))"
When i finish recording it shows a syntax error but shows the correct result in the square on excel.
When the macro is run the result is always the IF false outcome even if the IF is TRUE.
I would greatly appreciate anyones help/advice on this as i'm pretty new to vba
thanks
i have a formula that works in excel but when i come to record it as a macro it no longer works and si ignored but doesn't diurupt any other part of the macro. Recording below
Range("O3").Select
ActiveCell.FormulaR1C1 = _
"=IF(OR(RC[-9]=""TY"",RC[-9]=""1M"",RC[-9]=""2M"",RC[-9]=""3M"",RC[-9]=""5M""),CONCATENATE(TRIM(RC[-7])/10,TRIM(RC[-8])),CONCATENATE(TRIM(RC[-7]),TRIM(RC[-8])))"
When i finish recording it shows a syntax error but shows the correct result in the square on excel.
When the macro is run the result is always the IF false outcome even if the IF is TRUE.
I would greatly appreciate anyones help/advice on this as i'm pretty new to vba
thanks