So I have a pretty complex formula that I am using in some workbooks.
I would like to convert them to VBA, but it is way over the 255 character limit that .Formula allows.
I know of and have used the replace option before, where, for example, you have a formula: =If(AAA,bbb,CCC)
You replace "AAA" with what you need that section to be, then again with "bbb", then again with "CCC", etc.
However, due to the length of the formula, this would be extremely tedious to do many iterations of replace.
I am curious, is there a better way to do it? Perhaps write the actual formula in VBA native code? I find that might be difficult given my limited abilities.
Any insight is very helpful and appreciated!
Thanks.
-Spydey
I would like to convert them to VBA, but it is way over the 255 character limit that .Formula allows.
I know of and have used the replace option before, where, for example, you have a formula: =If(AAA,bbb,CCC)
You replace "AAA" with what you need that section to be, then again with "bbb", then again with "CCC", etc.
However, due to the length of the formula, this would be extremely tedious to do many iterations of replace.
I am curious, is there a better way to do it? Perhaps write the actual formula in VBA native code? I find that might be difficult given my limited abilities.
Any insight is very helpful and appreciated!
Thanks.
-Spydey