When I call a second subroutine (in the same module) from within the main code the values of my variables are not available in the second subroutine. I thought that variable values were available to any subroutines within the same module. I know I can declare tham as Public variables but then they will be available thoughout the whole project and this is not what I want.
Is is perhaps because of the way I am declaring them : with Dim statements at the begining of the main sub ? or is there something specific I have to do?

When stepping through the code I can see that a certain variable for example has a value of 6 in the main code but in the new sub this same variable is showing as 'empty'