appleglaze28
New Member
- Joined
- Aug 11, 2011
- Messages
- 4
Hi! I'm not really good with VBA Script but I'm familiar with the logic of how it works. I'm kinda troubleshooting something in Excel VBA and something was not working right.
Apparently whoever created that VBA Script had a very long conditional statement...too long that he had to cut it. He wrote another SUB process where the rest of the condition are written. But the main process has this condition where it checks the value and if it is meant a certain value is suppose to be linked to a variable. Then that variable goes through another conditional statement.
The programmer who created the script cut the script during the first condition. And I assume since the rest of the condition is in another SUB process. That the variable which is still found in the main process is equivalent to 0 cause the SUB process can't have the value be an output in the main process. Is my assumption right? If so? What's the best way I can remedy this.
And in case someone would recommend cutting the 1st condition short...there's no way I can do that cause it needs to be that specific.
Thanks in advance.
Apparently whoever created that VBA Script had a very long conditional statement...too long that he had to cut it. He wrote another SUB process where the rest of the condition are written. But the main process has this condition where it checks the value and if it is meant a certain value is suppose to be linked to a variable. Then that variable goes through another conditional statement.
The programmer who created the script cut the script during the first condition. And I assume since the rest of the condition is in another SUB process. That the variable which is still found in the main process is equivalent to 0 cause the SUB process can't have the value be an output in the main process. Is my assumption right? If so? What's the best way I can remedy this.
And in case someone would recommend cutting the 1st condition short...there's no way I can do that cause it needs to be that specific.
Thanks in advance.