Hi
What is your formula? Maybe I can shorten it up. Im not sure if there is a way to make excel accept formulas that are that long.
Jacob
One VERY UGLY way of doing that is using the fact that the .Formula property is not limited to 255 characters. The solution is pass it as an ordinary formula and then use sendkeys to Edit the formula and "press" Control Shift Enter, something like:
Sub Test()
Range("C1").Formula = "=SUM(A1:A10+B1:B10)"
Range("C1").Select
Application.SendKeys "{F2}^+{ENTER}"
End Sub
But this SHOULD BE the last resource !!
Juan Pablo G.
Thanks - I will keep that solution in case of emergencies. In this instance, I was able to rename some of my sheets and cell references to get it under the 255. Thanks for the suggestions! One VERY UGLY way of doing that is using the fact that the .Formula property is not limited to 255 characters. The solution is pass it as an ordinary formula and then use sendkeys to Edit the formula and "press" Control Shift Enter, something like: Sub Test()