Seperating a formula into segments
Posted by David Hinchee on October 19, 2001 8:43 AM
I'm a VBA beginner, and I need a macro that can seperate parts of a formula and put them in different cells. For example, if I have this formula in cell A1:
A1: =1000 + 1200/2 + 1800/3
I'd like end up with the following cells & formulas:
No change to the original formula:
A1: =1000 + 1200/2 + 1800/3
Add formulas to these cells as shown:
B1: =1000
C1: =1200/2
D1: =1800/3
In my application, the segments of the original formulas are always seperated by the + operator, and the original formula usually has from one to three segments.
Thanks for the help!
David