Hello Excel Gurus,
I am trying to write a macro which will search through an entire worksheet for a specific formula (excel add-in) and replace it with another special formula (excel add-in). The added twist is that the syntax for each formula is different. Details as follows:
Formula A syntax "=FORMA(A,B,C,D)"
Formula B syntax "=FORMB(Param1#B;Param2#C;Param3#A;Param4#D,Param5#E)" whereby A,B,C,D parameters are same as from Formula A
Note in Formula B, the parameters are separated by a ";" as opposed to a "," and each parameter is defined (e.g., Param1#, etc.).
My original thought was to use InStr to find relative positions of the "," in Formula A and essentially define Dim's for each of the parameters in Formula A and then create a script that will insert Formula B using the Dim's.
Suggestions much appreciated.
I am trying to write a macro which will search through an entire worksheet for a specific formula (excel add-in) and replace it with another special formula (excel add-in). The added twist is that the syntax for each formula is different. Details as follows:
Formula A syntax "=FORMA(A,B,C,D)"
Formula B syntax "=FORMB(Param1#B;Param2#C;Param3#A;Param4#D,Param5#E)" whereby A,B,C,D parameters are same as from Formula A
Note in Formula B, the parameters are separated by a ";" as opposed to a "," and each parameter is defined (e.g., Param1#, etc.).
My original thought was to use InStr to find relative positions of the "," in Formula A and essentially define Dim's for each of the parameters in Formula A and then create a script that will insert Formula B using the Dim's.
Suggestions much appreciated.