I am a reasonably experienced VBA Excel programmer, but this has got me stumped.
A text file contains strings of code such as the following:-
(Code#1/Code#2)+(Code#3/Code#4)
Where + = AND, / = OR
I am trying to write a piece of VBA code that can convert this into possible permutations of the logic in the statement.
The example above would need to return 4 possible lines.
Code#1 Code#3
Code#1 Code#4
Code#2 Code#3
Code#2 Code#4
The text string can come many configurations, including with nested brackets.
Code#1+((Code#2+Code#3)/Code#4)
Which would return 2 possible permutations...
Code#1 Code#2 Code#3
Code#1 Code#4
Any ideas?
A text file contains strings of code such as the following:-
(Code#1/Code#2)+(Code#3/Code#4)
Where + = AND, / = OR
I am trying to write a piece of VBA code that can convert this into possible permutations of the logic in the statement.
The example above would need to return 4 possible lines.
Code#1 Code#3
Code#1 Code#4
Code#2 Code#3
Code#2 Code#4
The text string can come many configurations, including with nested brackets.
Code#1+((Code#2+Code#3)/Code#4)
Which would return 2 possible permutations...
Code#1 Code#2 Code#3
Code#1 Code#4
Any ideas?