Hello!
i'm trying to write a piece of code in VBA but have encountered some issues. below you can see my code.
But the formula doesn't work without the "" around MMM but if i try run the code i get the area as excel is trying end the formula. How do i get around this?
i'm trying to write a piece of code in VBA but have encountered some issues. below you can see my code.
But the formula doesn't work without the "" around MMM but if i try run the code i get the area as excel is trying end the formula. How do i get around this?
Code:
Worksheets("Source Data").Range("z2").Formula = "=text(z1,[COLOR=#ff0000]"[/COLOR]mmm[COLOR=#ff0000]"[/COLOR])"