TIGREBLANCO
Programmer
Hi Guys
Short story:
Why when converting a Sub into a Function, execution of statements will no longer ocurr, even though vb runs through them?
Long story:
Is there a way to convert a Sub into a Function?. This Sub manipulates (insert, delete, etc) columns and its data, not only variables.
I have a macro that counts single instances of values (ignores cells with duplicate values).
I wanted to make this available as a function to users but replacing "Sub" with "Function" and doing proper modifications wouldn't work, it runs but won't do what Sub used to do, it actually does...nothing!!
I can see line by line executing and despite this my debug screen reports all my variables and references to cells are empty.
I hope this is enough info and that someone knows the reason/solution for this behavior.
Regards
Sal
Short story:
Why when converting a Sub into a Function, execution of statements will no longer ocurr, even though vb runs through them?
Long story:
Is there a way to convert a Sub into a Function?. This Sub manipulates (insert, delete, etc) columns and its data, not only variables.
I have a macro that counts single instances of values (ignores cells with duplicate values).
I wanted to make this available as a function to users but replacing "Sub" with "Function" and doing proper modifications wouldn't work, it runs but won't do what Sub used to do, it actually does...nothing!!
I can see line by line executing and despite this my debug screen reports all my variables and references to cells are empty.
I hope this is enough info and that someone knows the reason/solution for this behavior.
Regards
Sal